Created
August 18, 2017 08:08
-
-
Save multimeric/d85f74440c596822c89b7c71fc824402 to your computer and use it in GitHub Desktop.
Colemak Vim Config
This file contains hidden or 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
" Always use the system clipboard | |
set clipboard=unnamed | |
" X deletes without adding to the register | |
noremap x "_x | |
vnoremap x "_x | |
" Colemak key bindings | |
noremap n h | |
noremap e j | |
noremap i k | |
noremap o l | |
noremap h i | |
noremap j n | |
noremap k e | |
noremap l o | |
noremap N H | |
noremap E J | |
noremap I K | |
noremap O L | |
noremap H I | |
noremap J N | |
noremap K E | |
noremap L O | |
" Set Ctrl+n to move to the middle of line | |
map <C-n> :call cursor(0, virtcol('$')/2)<CR> | |
set tabstop=4 " The width of a TAB is set to 4. | |
" Still it is a \t. It is just that | |
" Vim will interpret it to be having | |
" a width of 4. | |
set shiftwidth=4 " Indents will have a width of 4 | |
set softtabstop=4 " Sets the number of columns for a TAB | |
set expandtab " Expand TABs to spaces | |
set relativenumber |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment