#1javascript
$ sudo apt-get install exuberant-ctags vim-scripts
$ vim-addons install taglist
#2php
到:http://www.vim.org/scripts/script.php?script_id=850去下載最新的pydiction;css
按照:http://rkulla.github.io/pydiction/ 的文檔去配置pydictionhtml
#3java
到http://www.vim.org/scripts/script.php?script_id=1658 下載和安裝最新的NERD treepython
按照:https://github.com/scrooloose/nerdtree 的文檔去配置NERD treegit
#4編輯 ~/.vimrc文件以下:
github
filetype plugin on let g:pydiction_location = '/home/openstack/.vim/complete-dict' let g:pydiction_menu_height = 3 let Tlist_Auto_Highlight_Tag=1 let Tlist_Auto_Open=1 let Tlist_Auto_Update=1 let Tlist_Display_Tag_Scope=1 let Tlist_Exit_OnlyWindow=1 let Tlist_Enable_Dold_Column=1 let Tlist_File_Fold_Auto_Close=1 let Tlist_Show_One_File=1 let Tlist_Use_Right_Window=1 let Tlist_Use_SingleClick=1 let Tlist_Ctags_Cmd='/usr/bin/ctags' nnoremap <silent> <F8> :TlistToggle<CR> autocmd FileType python autocmd FileType javascrīpt set omnifunc=javascriptcomplete#CompleteJS autocmd FileType html set omnifunc=htmlcomplete#CompleteTags autocmd FileType css set omnifunc=csscomplete#CompleteCSS autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags autocmd FileType php set omnifunc=phpcomplete#CompletePHP autocmd FileType c set omnifunc=ccomplete#Complete set autoindent set tabstop=4 set shiftwidth=4 set expandtab set omnifunc=pythoncomplete#Complete set mouse=a set number set autochdir autocmd StdinReadPre * let s:std_in=1