Last active
May 31, 2026 22:51
-
-
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 | |
| autocmd TextChanged,TextChangedI <buffer> silent write | |
| filetype plugin indent on |
Author
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
Author
https://stackoverflow.com/questions/17365324/auto-save-in-vim-as-you-type - found a nice autosave
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