ubuntu 下配置vim for python
- apt-get install vim-gnome
- apt-get install ctags
- apt-get install vim-scripts
- vim-addons install taglist
- 安装pydictionhttp://www.vim.org/scripts/script.php?script_id=850
- unzip pydiction-1.2.3.zip
pydiction
├── after
│ └── ftplugin
│ └── python_pydiction.vim
├── complete-dict
├── pydiction.py
├── README
└── README.md
- cp after/ftplugin/python_pydiction.vim ~/.vim/after/ftplugin(如果/after/ftplugin不存在,则创建)
- cp complete-dict ~/.vim/tools/pydiction/complete-dict
- 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的更多相关文章
- 转[开发环境配置]在Ubuntu下配置舒服的Python开发环境
在Ubuntu下配置舒服的Python开发环境 Ubuntu 提供了一个良好的 Python 开发环境,但如果想使我们的开发效率最大化,还需要进行很多定制化的安装和配置.下面的是我们团队开发人员推荐的 ...
- 在Ubuntu下配置舒服的Python开发环境
Ubuntu 提供了一个良好的 Python 开发环境,但如果想使我们的开发效率最大化,还需要进行很多定制化的安装和配置.下面的是我们团队开发人员推荐的一个安装和配置步骤,基于 Ubuntu 12.0 ...
- Ubuntu下配置舒服的Python开发环境
Ubuntu 提供了一个良好的 Python 开发环境,但如果想使我们的开发效率最大化,还需要进行很多定制化的安装和配置.下面的是我们团队开发人员推荐的一个安装和配置步骤,基于 Ubuntu 12.0 ...
- 在ubuntu下配置apache运行python脚本
2008-12-05 常用的简单命令 sudo apt-get remove --purge apache apache2 (彻底删除) sudo /etc/init.d/apache2 r ...
- Windows环境下配置Vim为Python的IDE
(一)安装Python 2.7 在官网下载Python,并安装,我的安装路径是D:\Program Files\Python.安装完成后编辑环境变量Path,在其后添加;D:\Program File ...
- Ubuntu 下一个 vim 建立python 周围环境 构造
于Windows通过使用各种现成的工具使用,去Linux下一个,没有一个关于线索--总之google有些人的经验,折腾来折腾,开发环境也算是一个好工作. 1. 安装完成vim # apt-get in ...
- Ubuntu下利用vim搭建python开发环境
1. 安装vim $ sudo apt-get install vim 2. 安装ctags,ctags用于支持taglist,必需! $ sudo apt-get install ctags 3. ...
- Ubuntu下配置python完成爬虫任务(笔记一)
Ubuntu下配置python完成爬虫任务(笔记一) 目标: 作为一个.NET汪,是时候去学习一下Linux下的操作了.为此选择了python来边学习Linux,边学python,熟能生巧嘛. 前期目 ...
- ubuntu下在apache部署python站点
ubuntu下在apache部署python站点 我的是ubuntu14 32为的虚拟机,默认安装的python为3.4 环境:apache + mysql + django + python3 软件 ...
随机推荐
- Tomcat下的work目录
work目录只是tomcat的工作目录,也就是tomcat把jsp转换为class文件的工作目录,这也正是为什么它叫work目录而不是cache目录的原因. jsp,tomcat的工作原理是当浏览器访 ...
- .net C# 苹果消息推送 工具类
public class AppleAPNSMessage { /// <summary> /// 苹果信息推送 证书 路径(注意测试版跟正式发布版证书上不一样) /// </sum ...
- keyboard添加down按钮
self.textView.inputAccessoryView = [self addToolbar]; - (UIToolbar *)addToolbar { UIToolbar *toolbar ...
- Memory Limits for Windows and Windows Server Releases
来源:https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778(v=vs.85).aspx Limits on memory ...
- c++ inline关键字的理解
1. inline是实现修饰符,而非声明修饰符,所以应该用于实现部分的修饰(你也可以放置inline在声明,但是没有必要) 2. 所有中类中定义的函数都默认声明为inline函数,所有我们不用显示地去 ...
- PHP 分析1
D:\wamp64\www\practice test 3: PHP 显示乱码 http://localhost/practice/ex1_5_stu.php <html><meta ...
- 2.1 IDEA
1.背景:IntelliJ IDEA 比 Eclipse 更好http://www.oschina.net/news/26929/why-intellij-is-better-than-eclipse ...
- Salesforce apex标签的有关内容
局部刷新标签: apex:actionSupport event="onchange" action="{!changeSelect}" rerender=&q ...
- Ubuntu下Android apk反编译
需要用到的工具 1.apktool_2.0.3.jar https://bbuseruploads.s3.amazonaws.com/0becf6a1-1706-4f2e-9ae6-891e00a8d ...
- 【MySQL】查询优化实例解析-延迟关联优化
[提出问题] 从数据表t通过分页查询的方式读取数据,读取时要根据a1排序.t有80万行记录,当OFFSET很大时,读取速度很慢.优化后查询速度提升很快. 下图是表的定义,一共有几十个字段,RowLen ...