必备
vim8.0
vim-plug
vim-go
YCM
gotags
ctags
set nocompatible
set number
syntax on
set t_Co=256
filetype indent on
set cursorline
set textwidth=160
set hlsearch
set incsearch
set noerrorbells
execute pathogen#infect()
filetype plugin indent on
let g:solarized_termcolors=256
set autoindent
set mouse=a
syntax enable
set background=light
colorscheme solarized
" some plugin
call plug#begin('~/.vim/plugged')
Plug 'Valloric/YouCompleteMe'
Plug 'majutsushi/tagbar'
Plug 'ntpeters/vim-better-whitespace'
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
Plug 'fatih/vim-go', { 'tag': '*' }
Plug 'scrooloose/nerdtree'
Plug 'jiangmiao/auto-pairs'
call plug#end()
" set NERDTree for vim dir plugin "
autocmd VimEnter * NERDTree
"see the tail space "
highlight ExtraWhitespace ctermbg=blue
map <c-p> <c-t>
"tarbar
nmap <F3> :TagbarToggle<CR>