From 14a3ff2c2ee6180d826a5a0b7abf420ffc91ad73 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 9 Jul 2023 02:25:33 +0200 Subject: ftplugin/ocaml.vim: Add build and run mappings --- ftplugin/ocaml.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ftplugin') diff --git a/ftplugin/ocaml.vim b/ftplugin/ocaml.vim index b1f3f59..559b37e 100644 --- a/ftplugin/ocaml.vim +++ b/ftplugin/ocaml.vim @@ -5,3 +5,8 @@ setlocal expandtab setlocal tabstop=2 setlocal softtabstop=2 setlocal shiftwidth=2 + + +nnoremap Zr + \ :execute '!eval $(opam env) && dune exec ' . fnameescape(expand('%:p:h:h:t')) +nnoremap Zb :!eval $(opam env) && dune build -- cgit v1.2.3