Skip to content

Instantly share code, notes, and snippets.

@codefionn
Last active March 19, 2020 08:37
Show Gist options
  • Save codefionn/804199ded5cf73335c8282f8c3f8dc74 to your computer and use it in GitHub Desktop.
Save codefionn/804199ded5cf73335c8282f8c3f8dc74 to your computer and use it in GitHub Desktop.
My vimrc file
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