darkrc/vim/plugin/vexe.vim

6 lines
237 B
VimL
Raw Normal View History

2020-07-30 14:25:46 +00:00
" --- VISUAL EXECUTE ---
let $LUA_PATH=expand('<sfile>:p:h:h')."/lua/?.lua;;"
2020-10-08 08:10:08 +00:00
let g:exe_prg = 'lua -e "draw=require[[draw]]" -'
2020-07-30 14:25:46 +00:00
vnoremap <CR> :<C-U>exec "'<,'>!".g:exe_prg<CR>
inoremap <C-Space> <C-[>0v$:<C-U>exec "'<,'>!".g:exe_prg<CR>