diff --git a/vimrc b/vimrc index 4d01ded..b20b578 100644 --- a/vimrc +++ b/vimrc @@ -371,8 +371,8 @@ command! -nargs=? Scratch new | set buftype=nofile | set filetype= let mapleader = "\\" let g:jmp_dist = 8 -nmap :exec "normal ".g:jmp_dist."j" -nmap :exec "normal ".g:jmp_dist."k" +map :exec "normal ".g:jmp_dist."j" +map :exec "normal ".g:jmp_dist."k" " Yes, not 'noremap', do whatever is mapped to J and K assuming " it is some sort of custom up-down motion, but g:jmp_dist times @@ -402,6 +402,12 @@ noremap gk k " --- CLIPBOARD --- nnoremap Y y$ +" --- VISUAL EXECUTE --- +vnoremap :exec "'<,'>!".g:exe_prg +vnoremap ""y + \ :call setreg("\"", substitute(getreg("\""), "\n", "", ""), "v") + \ :"`< + " --- OTHER --- " Don't exit visual mode when "shifting" vnoremap <