首页 > 代码库 > vimrc备个份

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 <F8> :TagbarToggle<CR>
nmap <F3> :Autoformat<CR>
nmap <F7> :NERDTreeToggle<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
\ }

 

vimrc备个份