Last active
April 12, 2023 06:10
-
-
Save pakeke-constructor/de46a4edaaca73821d458e7c8de846e6 to your computer and use it in GitHub Desktop.
My vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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