首页 > 系统服务 > 详细

vimrc备个份

时间:2017-05-11 00:53:02      阅读:316      评论:0      收藏:0      [点我收藏+]
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备个份

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!