git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim .vimrc write below code into vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'ascenator/L9', {'name': 'newL9'}
Bundle 'majutsushi/tagbar'
"nmap
tb :TagbarToggle
"快捷键设置
let g:tagbar_ctags_bin='/usr/bin/ctags' "ctags程序的路径
let g:tagbar_width=30 "窗口宽度的设置
map
:Tagbar
"autocmd BufReadPost *.cpp,*.c,*.h,*.hpp,*.cc,*.cxx call tagbar#autoopen() "如果是c语言的程序的话,tagbar自动开启
Bundle 'bling/vim-airline'
set laststatus=2
Plugin 'scrooloose/nerdcommenter'
Plugin 'scrooloose/nerdtree'
Plugin 'fholgado/minibufexpl.vim'
Plugin 'wesleyche/SrcExpl'
Plugin 'bufexplorer.zip'
Bundle 'vim-scripts/winmanager'
let g:NERDTree_title="[NERDTree]"
let g:winManagerWindowLayout="NERDTree|BufExplorer"
function! NERDTree_Start()
exec 'NERDTree'
endfunction
function! NERDTree_IsValid()
return 1
endfunction
nmap wm :WMToggle
Bundle 'scrooloose/syntastic' Bundle 'Valloric/YouCompleteMe' let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py' Bundle 'Valloric/ListToggle' Plugin 'Shougo/neocomplete.vim' Bundle 'kien/ctrlp.vim' if executable('ag') " Use Ag over Grep set grepprg=ag\ --nogroup\ --nocolor " Use ag in CtrlP for listing files. let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' " Ag is fast enough that CtrlP doesn't need to cache let g:ctrlp_use_caching = 0 endif call vundle#end() filetype plugin indent on
if it is not ok please notice below
especially youcompleteme plugin you should install it alone //support c-family language like c c++ python php
below is process:
sudo apt-get install build-essential cmake
sudo apt-get install python-dev python3-dev
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-complete
sudo apt-get install python-dev python3-dev
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-complete
then launch vim and :PluginInstall
winmanager change window shortcut key is ctrl +w