Skip to content

Instantly share code, notes, and snippets.

@gnthibault
Last active April 17, 2018 11:39
Show Gist options
  • Save gnthibault/292f8cfed13fe56a67aa6f1e0f41bbda to your computer and use it in GitHub Desktop.
Save gnthibault/292f8cfed13fe56a67aa6f1e0f41bbda to your computer and use it in GitHub Desktop.
vimrc for c++
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/home/gnthibault/.vim/bundle/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('/home/gnthibault/.vim/bundle')
call dein#begin('/home/gnthibault/.vim/bundle')
" Let dein manage dein
" Required:
call dein#add('/home/gnthibault/.vim/bundle/repos/github.com/Shougo/dein.vim')
" Add or remove your plugins here:
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
call dein#add('scrooloose/nerdtree')
" You can specify revision/branch/tag.
call dein#add('Shougo/vimshell', { 'rev': '3787e5' })
" Required:
call dein#end()
call dein#save_state()
endif
" Required:
syntax enable
" Indent with 2 spaces
"filetype plugin indent on
set autoindent
set expandtab
set shiftwidth=2
set softtabstop=2
" Line numbering enabled
set number
" 80 char limit
if exists('+colorcolumn')
set colorcolumn=80
else
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
endif
" Starts NerdTree by default.
autocmd vimenter * NERDTree
let g:NERDTreeWinSize=21
" If you want to install not installed plugins on startup.
"if dein#check_install()
" call dein#install()
"endif
"End dein Scripts-------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment