Created
May 25, 2019 09:22
-
-
Save harsh183/762bf24a42dae66f2dde6f9ec02e9296 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 number | |
syntax on | |
set mouse=a | |
set softtabstop=4 | |
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 smartindent | |
filetype plugin indent on | |
:au FocusLost * silent! wa |
For my extentions, git diff, bad wolf and NerdTree
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
map <C-T> :NERDTreeToggle<CR>
" NOTE CONTROL+T does something else
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
let g:badwolf_darkgutter = 1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For when I type it on a exam computer out of memory