darkrc/vim/plugin/vexe.vim

5 lines
156 B
VimL
Raw Normal View History

2020-07-30 14:25:46 +00:00
" --- VISUAL EXECUTE ---
2021-01-05 11:00:04 +00:00
let g:exe_prg = 'lua'
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>