Ubuntu 14.04的vim编辑器配置Python开发环境
#1
$ sudo apt-get install exuberant-ctags vim-scripts
$ vim-addons install taglist
#2
到:http://www.vim.org/scripts/script.php?script_id=850去下载最新的pydiction;
按照:http://rkulla.github.io/pydiction/ 的文档去配置pydiction
#3
到http://www.vim.org/scripts/script.php?script_id=1658 下载和安装最新的NERD tree
按照:https://github.com/scrooloose/nerdtree 的文档去配置NERD tree
#4编辑 ~/.vimrc文件如下:
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