Skip to content

Instantly share code, notes, and snippets.

@harsh183
Created May 25, 2019 09:22
Show Gist options
  • Save harsh183/762bf24a42dae66f2dde6f9ec02e9296 to your computer and use it in GitHub Desktop.
Save harsh183/762bf24a42dae66f2dde6f9ec02e9296 to your computer and use it in GitHub Desktop.
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
@harsh183
Copy link
Author

For when I type it on a exam computer out of memory

set number
syntax on
set mouse=a
set smartindent

@harsh183
Copy link
Author

harsh183 commented Jan 21, 2020

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