1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
| call plug#begin('~/.vim/plugged')
Plug 'https://github.com/scrooloose/nerdtree.git' Plug 'morhetz/gruvbox' Plug 'vim-airline/vim-airline' Plug 'scrooloose/nerdcommenter'
call plug#end()
colorscheme monokai
set clipboard=unnamedplus
set runtimepath^=~/.vim/bundle/ctrlp.vim
if has('mouse') set mouse=a endif
set nu
set autoindent set si "smart indent"
syntax on
autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif map <C-n> :NERDTreeToggle<CR>
set expandtab set tabstop=2 set softtabstop=2
|