Skip to content

Instantly share code, notes, and snippets.

@harsh183
Last active May 31, 2026 22:51
Show Gist options
  • Select an option

  • Save harsh183/762bf24a42dae66f2dde6f9ec02e9296 to your computer and use it in GitHub Desktop.

Select an option

Save harsh183/762bf24a42dae66f2dde6f9ec02e9296 to your computer and use it in GitHub Desktop.
set number
syntax on
set mouse=a
autocmd TextChanged,TextChangedI <buffer> silent write
filetype plugin indent on
@harsh183

Copy link
Copy Markdown
Author

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

set number
syntax on
set mouse=a
set smartindent

@harsh183

harsh183 commented Jan 21, 2020

Copy link
Copy Markdown
Author

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

@harsh183

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment