vimrc备个份

set mouse=a
set number
set smartindent
set expandtab
set tabstop=4
set shiftwidth=4
set hlsearch
set nocompatible
set backspace=indent,eol,start
let g:neocomplete#enable_at_startup = 1
set completeopt-=preview
set laststatus=2
set cursorline

nmap <F3> :Autoformat<CR>
nmap <F4> :xa<CR>
nmap <F7> :NERDTreeToggle<CR>
nmap <F8> :TagbarToggle<CR>

call plug#begin('~/.vim/plugged')
Plug 'majutsushi/tagbar'
Plug 'Raimondi/delimitMate'
Plug 'Chiel92/vim-autoformat'
Plug 'Shougo/neocomplete'
Plug 'scrooloose/nerdtree'
Plug 'vim-airline/vim-airline'
Plug 'Yggdroot/indentLine'
call plug#end()

let g:tagbar_type_go = {
\ 'ctagstype' : 'go',
\ 'kinds' : [
\ 'p:package',
\ 'i:imports:1',
\ 'c:constants',
\ 'v:variables',
\ 't:types',
\ 'n:interfaces',
\ 'w:fields',
\ 'e:embedded',
\ 'm:methods',
\ 'r:constructor',
\ 'f:functions'
\ ],
\ 'sro' : '.',
\ 'kind2scope' : {
\ 't' : 'ctype',
\ 'n' : 'ntype'
\ },
\ 'scope2kind' : {
\ 'ctype' : 't',
\ 'ntype' : 'n'
\ },
\ 'ctagsbin' : 'gotags',
\ 'ctagsargs' : '-sort -silent'
\ }

posted @ 2017-05-11 00:33 君莫笑hhhhhh 阅读(...) 评论(...) 编辑 收藏