darkrc/vim/plugin/vexe.vim

4 lines
156 B
VimL

" --- VISUAL EXECUTE ---
let g:exe_prg = 'lua'
vnoremap <CR> :<C-U>exec "'<,'>!".g:exe_prg<CR>
inoremap <C-Space> <C-[>0v$:<C-U>exec "'<,'>!".g:exe_prg<CR>