visualrun.vim (322B)
1 if exists('g:loaded_visualrun') || &cp 2 finish 3 endif 4 let g:loaded_visualrun = 1 5 6 let s:cpo_save = &cpo 7 set cpo&vim 8 9 " Create a mapping: <c-\><c-n> puts us in normal mode, then execute selection 10 vnoremap <silent> <Plug>VisualRunCommands <c-\><c-n>:exe visualrun#JoinSelection()<cr> 11 12 let &cpo = s:cpo_save 13 unlet s:cpo_save