Skip to content

Instantly share code, notes, and snippets.

@pakeke-constructor
Last active April 12, 2023 06:10
Show Gist options
  • Save pakeke-constructor/de46a4edaaca73821d458e7c8de846e6 to your computer and use it in GitHub Desktop.
Save pakeke-constructor/de46a4edaaca73821d458e7c8de846e6 to your computer and use it in GitHub Desktop.
My vimrc
" Remapping escape to be easier
inoremap kj <esc>
vnoremap kj <esc>
" q = jump backwards through words easier
nnoremap q b
" Rebind ! to macro key, (since q is now used)
nnoremap ! q
" W = Jump to end of line
nnoremap W $
nnoremap dW d$
nnoremap yW y$
vnoremap W $
" Q = Jump to start of line
nnoremap Q ^
nnoremap dQ d^
nnoremap yQ y^
vnoremap Q ^
" s = Substitute in word
nnoremap s ciw
" S = Substitute in brackets
nnoremap S cib
" Moving back and forward between tabs
nnoremap t <c-^> <CR>
" Easier access to :
nnoremap <CR> :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment