码迷,mamicode.com
首页 > 系统相关 > 详细

vimrc备个份

时间:2017-05-11 00:58:53      阅读:297      评论:0      收藏:0      [点我收藏+]

标签:sorl   cursor   ble   number   ndt   ctags   imp   sort   orm   

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备个份

标签:sorl   cursor   ble   number   ndt   ctags   imp   sort   orm   

原文地址:http://www.cnblogs.com/junmoxiao/p/6838963.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!