1. 程式人生 > >簡單的一份vim配置

簡單的一份vim配置

open syntax 簡單 bundle vundle _exit begin width art

set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin ‘VundleVim/Vundle.vim‘
call vundle#end()
filetype plugin indent on

syntax on
colorscheme molokai
Bundle ‘taglist.vim‘
let Tlist_Ctags_Cmd=‘ctags‘
let Tlist_Show_One_File=1 "不同時顯示多個文件的tag,只顯示當前文件的
let Tlist_WinWidt =28 "設置taglist的寬度
let Tlist_Exit_OnlyWindow=1 "如果taglist窗口是最後一個窗口,則退出vim
"let Tlist_Use_Right_Window=1 "在右側窗口中顯示taglist窗口
let Tlist_Use_Left_Windo =1 "在左側窗口中顯示taglist窗口

Bundle ‘majutsushi/tagbar‘
"nmap <Leader>tb :TagbarToggle<CR> "快捷鍵設置
let g:tagbar_ctags_bin=‘ctags‘ "ctags程序的路徑
let g:tagbar_width=30 "窗口寬度的設置
map <F3> :Tagbar<CR>
autocmd BufReadPost *.java,*.html,*.h,*.hpp,*.cc,*.cxx call tagbar#autoopen()

Bundle ‘scrooloose/nerdtree‘
let NERDTreeWinPos=‘right‘
let NERDTreeWinSize=30
map <F2> :NERDTreeToggle<

簡單的一份vim配置