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

 

转载于:https://www.cnblogs.com/Security-Darren/p/5316564.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值