Skip to content

Instantly share code, notes, and snippets.

@farfanoide
Created March 17, 2014 15:19
Show Gist options
  • Save farfanoide/9601196 to your computer and use it in GitHub Desktop.
Save farfanoide/9601196 to your computer and use it in GitHub Desktop.
faster selections in visual mode
" faster selections in visual mode
let g:multi_line_jump=6
execute "vnoremap J ".g:multi_line_jump."j"
execute "vnoremap K ".g:multi_line_jump."k"
function! SetMultiLineJump(jump_size)
execute "vnoremap J ".a:jump_size."j"
execute "vnoremap K ".a:jump_size."k"
endfunction
command! -nargs=1 SetMultiLineJump call SetMultiLineJump(<f-args>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment