Fixed Mooncompile Command

This commit is contained in:
Talia 2018-03-09 14:11:26 +01:00
parent 37bdfddcd7
commit d36e470044

3
vimrc
View file

@ -410,7 +410,8 @@ nnoremap Y y$
" --- VISUAL EXECUTE --- " --- VISUAL EXECUTE ---
let $LUA_PATH = $LUA_PATH.";".expand("<sfile>:p:h")."/lua/?.lua" let $LUA_PATH = $LUA_PATH.";".expand("<sfile>:p:h")."/lua/?.lua"
command! Mooncompile silent exec "!moonc ".expand("<sfile>:p:h")."/lua" let g:mooncompile = "!moonc ".expand("<sfile>:p:h")."/lua"
command! Mooncompile silent exec g:mooncompile
let g:exe_prg = "moonc -- | lua -l vim -" let g:exe_prg = "moonc -- | lua -l vim -"
vnoremap <CR> :<C-U>exec "'<,'>!".g:exe_prg<CR> vnoremap <CR> :<C-U>exec "'<,'>!".g:exe_prg<CR>
vnoremap <C-CR> ""y<CR> vnoremap <C-CR> ""y<CR>