Skip to content

Instantly share code, notes, and snippets.

@VernonGrant
Last active August 26, 2021 09:03
Show Gist options
  • Save VernonGrant/2fc3c81191f2ff9bbe97c158da45ae5c to your computer and use it in GitHub Desktop.
Save VernonGrant/2fc3c81191f2ff9bbe97c158da45ae5c to your computer and use it in GitHub Desktop.
Faster vertical movement in vim
" Faster up and down movement bindings.
nnoremap <C-k> :-5<CR>
inoremap <C-k> <Esc>:-5<CR> i
nnoremap <C-j> :+5<CR>
inoremap <C-j> <Esc>:+5<CR> i
nnoremap <C-Up> :-5<CR>
inoremap <C-Up> <Esc>:-5<CR> i
nnoremap <C-Down> :+5<CR>
inoremap <C-Down> <Esc>:+5<CR> i
# Run the following commands in your terminal (Mac OS) to increate the key repeat rate.
# Normal minimum is 15 (225 ms)
defaults write -g InitialKeyRepeat -int 10
# Normal minimum is 2 (30 ms)
defaults write -g KeyRepeat -int 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment