Created
January 11, 2020 23:06
-
-
Save AbstractBeliefs/60699f240d1f966c2e202741ef1f3bbf to your computer and use it in GitHub Desktop.
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 title " Title enabled in terminal bar | |
| set ls=2 " always show status | |
| set hlsearch " highlight search results | |
| set tags=tags; " Recursively find tagfiles | |
| nnoremap <F5> :tabedit | |
| nnoremap <F6> :tabp<CR> | |
| nnoremap <F7> :tabn<CR> | |
| nnoremap <F8> :tabclose<CR> | |
| set number " linenumbers | |
| set showcmd " show incomplete commands | |
| " Colouring details | |
| set background=dark " Set fg colours for a dark bd | |
| syntax on " enable syntax highlighting | |
| " Tab details | |
| 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 autoindent | |
| set cc=120 | |
| set textwidth=120 | |
| au BufRead,BufNewFile *.html setlocal softtabstop=2 | setlocal tabstop=2 | setlocal shiftwidth=2 | |
| au BufRead,BufNewFile *.cpp setlocal softtabstop=2 | setlocal tabstop=2 | setlocal shiftwidth=2 | |
| au BufRead,BufNewFile Makefile setlocal noexpandtab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment