Ubuntu 14.04的vim编辑器配置Python开发环境
2016-03-24 18:04
981 查看
#1
#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文件如下:
$ 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
相关文章推荐
- Python3下的NLTK及nltk_data安装问题(Ubuntu环境)
- python学习(三):高级特性
- 安装sqlmap+python正确姿势
- 详解Python使用simplejson模块解析JSON的方法
- Python smtplib模块自动收发邮件(一)
- python模块与包
- python 之 使用SQLite
- python3.0以上 web crawled
- python 安装setuptools和pip
- Python中SQLite支持数据库远程访问吗?
- Python集成开发环境 PyCharm的搭建
- Python 高级编程笔记之测试驱动开发
- python csv to json
- python中列表和元组以及字符串的操作
- 简单的Python爬虫刷访问量程序
- python操作sqlite3的几项问题分析
- Python学习笔记day10
- Python中如何在继承的类中调用基类的方法
- python_爬虫模拟登录微博
- Python学习笔记(1)——基础知识