From d36e470044bb879589dd387f3084262b05d2df00 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Fri, 9 Mar 2018 14:11:26 +0100 Subject: [PATCH] Fixed Mooncompile Command --- vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index a420605..c33cd0a 100644 --- a/vimrc +++ b/vimrc @@ -410,7 +410,8 @@ nnoremap Y y$ " --- VISUAL EXECUTE --- let $LUA_PATH = $LUA_PATH.";".expand(":p:h")."/lua/?.lua" -command! Mooncompile silent exec "!moonc ".expand(":p:h")."/lua" +let g:mooncompile = "!moonc ".expand(":p:h")."/lua" +command! Mooncompile silent exec g:mooncompile let g:exe_prg = "moonc -- | lua -l vim -" vnoremap :exec "'<,'>!".g:exe_prg vnoremap ""y