Last active
March 5, 2018 11:09
-
-
Save chulman444/89bced7bfd3b70409ed4d9055700e937 to your computer and use it in GitHub Desktop.
vimrc. I keep forgetting my configs
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
:set nopaste "Fixes weird indentation when pasting" | |
"Didn't know 'paste' mode exists. do `:set paste` manually" | |
"when you have to paste and back to `:set nopaste` after you are done" | |
"Else, the 'paste' mode, bottom reading `--INSERT (paste)--` will ignore other settings here" | |
"Refer to `:help paste`" | |
:set tabstop=4 "Default is 8 and is too much for me" | |
:set expandtab "I prefer space" | |
:set shiftwidth=4 "Set to 4 spaces for indenting with `Shift + >>` in view mode" | |
:set autoindent "The above doesn't 'autoindent'" | |
:set splitright "Why the hell the default would open the new file on the LEFT???" | |
:set splitbelow "I guess this option exists becasue vim opens the new file at the top with `sp`?" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment