Last active
March 19, 2020 08:37
-
-
Save codefionn/804199ded5cf73335c8282f8c3f8dc74 to your computer and use it in GitHub Desktop.
My vimrc file
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 incsearch hlsearch | |
set number relativenumber | |
set cursorline | |
set nowrap | |
set tabstop=4 shiftwidth=4 noexpandtab | |
set colorcolumn=81 | |
syntax on | |
filetype indent on | |
" NERDTree | |
" Close if only NERDTree open | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
" Open | |
map <C-n> :NERDTreeToggle<CR> | |
autocmd BufNewFile,BufRead *.cpp set tabstop=2 shiftwidth=2 expandtab | |
autocmd BufNewFile,BufRead *.hpp set tabstop=2 shiftwidth=2 expandtab | |
colorscheme elflord |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment