1. apt-get install vim-gnome
  2. apt-get install ctags
  3. apt-get install vim-scripts
  4. vim-addons install taglist
  5. 安装pydictionhttp://www.vim.org/scripts/script.php?script_id=850
  6. unzip pydiction-1.2.3.zip
pydiction
├── after
│   └── ftplugin
│   └── python_pydiction.vim
├── complete-dict
├── pydiction.py
├── README
└── README.md
  1. cp after/ftplugin/python_pydiction.vim ~/.vim/after/ftplugin(如果/after/ftplugin不存在,则创建)
  2. cp complete-dict ~/.vim/tools/pydiction/complete-dict
  3. cp pydiction.py ~/.vim
.vim
├── after
│   └── ftplugin
│   └── python_pydiction.vim
├── doc
│   ├── taglist.txt -> /usr/share/vim-scripts/doc/taglist.txt
│   └── tags
├── plugin
│   └── taglist.vim -> /usr/share/vim-scripts/plugin/taglist.vim
├── pydiction.py
└── tools
└── pydiction
└── complete-dict

编辑~/.vimrc文件

  1 let Tlist_Auto_Highlight_Tag=1
2 let Tlist_Auto_Open=1
3 let Tlist_Auto_Update=1
4 let Tlist_Display_Tag_Scope=1
5 let Tlist_Exit_OnlyWindow=1
6 let Tlist_Enable_Dold_Column=1
7 let Tlist_File_Fold_Auto_Close=1
8 let Tlist_Show_One_File=1
9 let Tlist_Use_Right_Window=1
10 let Tlist_Use_SingleClick=1
11 nnoremap <silent> <F8> :TlistToggle<CR>
12 filetype plugin on
13 autocmd FileType python set omnifunc=pythoncomplete#Complete
14 autocmd FileType javascrīpt set omnifunc=javascriptcomplete#CompleteJS
15 autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
16 autocmd FileType css set omnifunc=csscomplete#CompleteCSS
17 autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
18 autocmd FileType php set omnifunc=phpcomplete#CompletePHP
19 autocmd FileType c set omnifunc=ccomplete#Complete
20 let g:pydiction_location='~/.vim/tools/pydiction/complete-dict'
21 set autoindent
22 set tabstop=4
23 set shiftwidth=4

ubuntu 下配置vim for python的更多相关文章

  1. 转[开发环境配置]在Ubuntu下配置舒服的Python开发环境

    在Ubuntu下配置舒服的Python开发环境 Ubuntu 提供了一个良好的 Python 开发环境,但如果想使我们的开发效率最大化,还需要进行很多定制化的安装和配置.下面的是我们团队开发人员推荐的 ...

  2. 在Ubuntu下配置舒服的Python开发环境

    Ubuntu 提供了一个良好的 Python 开发环境,但如果想使我们的开发效率最大化,还需要进行很多定制化的安装和配置.下面的是我们团队开发人员推荐的一个安装和配置步骤,基于 Ubuntu 12.0 ...

  3. Ubuntu下配置舒服的Python开发环境

    Ubuntu 提供了一个良好的 Python 开发环境,但如果想使我们的开发效率最大化,还需要进行很多定制化的安装和配置.下面的是我们团队开发人员推荐的一个安装和配置步骤,基于 Ubuntu 12.0 ...

  4. 在ubuntu下配置apache运行python脚本

    2008-12-05    常用的简单命令 sudo apt-get remove --purge apache apache2 (彻底删除)   sudo /etc/init.d/apache2 r ...

  5. Windows环境下配置Vim为Python的IDE

    (一)安装Python 2.7 在官网下载Python,并安装,我的安装路径是D:\Program Files\Python.安装完成后编辑环境变量Path,在其后添加;D:\Program File ...

  6. Ubuntu 下一个 vim 建立python 周围环境 构造

    于Windows通过使用各种现成的工具使用,去Linux下一个,没有一个关于线索--总之google有些人的经验,折腾来折腾,开发环境也算是一个好工作. 1. 安装完成vim # apt-get in ...

  7. Ubuntu下利用vim搭建python开发环境

    1. 安装vim $ sudo apt-get install vim 2. 安装ctags,ctags用于支持taglist,必需! $ sudo apt-get install ctags 3. ...

  8. Ubuntu下配置python完成爬虫任务(笔记一)

    Ubuntu下配置python完成爬虫任务(笔记一) 目标: 作为一个.NET汪,是时候去学习一下Linux下的操作了.为此选择了python来边学习Linux,边学python,熟能生巧嘛. 前期目 ...

  9. ubuntu下在apache部署python站点

    ubuntu下在apache部署python站点 我的是ubuntu14 32为的虚拟机,默认安装的python为3.4 环境:apache + mysql + django + python3 软件 ...

随机推荐

  1. mysql 中文字段排序( UTF8按拼音首字母排序)

    select * from tableName CONVERT( FieldName USING gbk ) COLLATE gbk_chinese_ci desc

  2. JAVA环境变量配置详解

    JAVA环境变量JAVA_HOME.CLASSPATH.PATH设置详解 Windows下JAVA用到的环境变量主要有3个,JAVA_HOME.CLASSPATH.PATH. JAVA_HOME 指向 ...

  3. Scala Apply

    class ApplyTest{ //一定要写(),不加括号就报错. def apply() = println("Into Spark!") def havaAtry(){ pr ...

  4. svn is already locked解决办法

    在出错文件夹下,鼠标右键

  5. OC基础面试题

    1.iOS中delegate代理对象使用weak 之前不停的使用assign,今天在调试一段的时候,发现使用assgin的时候程序会crash,报错EXC_BAD_ACCESS, 经过一番研讨,发明如 ...

  6. 5. test命令

    Shell中的 test 命令用于检查某个条件是否成立,它可以进行数值.字符和文件三个方面的测试. 1. 数值测试 参数 说明 -eq 等于则为真 -ne 不等于则为真 -gt 大于则为真 -ge 大 ...

  7. Linux修改SSH端口和禁止Root远程登陆

    Linux修改ssh端口22 vi /etc/ssh/ssh_config vi /etc/ssh/sshd_config 然后修改为port 8888 以root身份service sshd res ...

  8. Github朝花夕拾

    删除fork的项目   下载指定revision的repository 通过git log查看提交历史,最好是GUI查看 然后执行命令git reset –hard <sha1> 同步到最 ...

  9. 在Eclipse中设置文件的默认打开方式

    在Eclipse中,我们可以设置jsp.xml.js.sql等文件默认打开方式: ①.打开配置选项 ②.找到文件设置 ③.选中我们要设置的文件,默认即可:

  10. .net webapi项目中支持session

    webapi中默认是不支持session的开启的 需要在Global.asax文件中,添加如下代码 public override void Init() { this.PostAuthenticat ...