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 软件 ...
随机推荐
- [NEUQ-OJ] 1012 SZ斐波拉契数列
一道水题,让我看清基础我的基础是多么薄弱. 递归,数组清零,数组名/变量名重复层出不穷...路漫漫啊.......... http://ncc.neuq.edu.cn/oj/problem.php?i ...
- 安卓activity之间值共享解决办法,tabhost之间共享父类值,字符串类型的转换,获取每一个listview的item
1.tabhost父类值共享的解决办法 dianzhanliebiao.java是传值页面,zhuyemian.java放的是tabhost,dianzhangaikuang.java是tabhost ...
- Hadoop集群出现no data node to stop的解决方案
问题描述: 今天stop hadoop集群的时候出现no datanode to stop ,寻找解决方案,并不是网上资料所说的什么DFS Used .Non DFS Used等于0 .所有的节点都是 ...
- Asp.Net BulletedList使用及详解
BulletedList使用及详解 文章来源:www.cnblogs.com/xiohao/archive/2013/10/09/3359263.html BulletedList是一个让你轻松在 ...
- NYOJ-102 次方求模
次方求模 时间限制:1000 ms | 内存限制:65535 KB 难度:3 描述 求a的b次方对c取余的值 输入 第一行输入一个整数n表示测试数据的组数(n<100)每组测试只有一 ...
- LeetCode 453. Minimum Moves to Equal Array Elements C#
Given a non-empty integer array of size n, find the minimum number of moves required to make all arr ...
- textview设置不同字体大小
<style name="style0"> <item name="android:textSize">19dip</item&g ...
- 第一篇,jos
关于jos环,使用递推公式简化问题和代码,关键在于找到正确的递推公式,可使用一个例子来寻找. (数学能力较差,只好打个表找规律了) 为方便取余运算,将编号1---n的下标表示为0--(n-1) ...
- 信息存储——当值X是2的非负整数n次幂时,如何表示成十六进制
十六进制表示法 当值X是2的非负整数n次幂时,很容易将X写成十六进制形式,只要记住X的二进制表示就是1后面跟n个0.十六进制数字0代表4个二进制0.所以当n表示成i+4j的形 ...
- 【.NET】加密和解密(.NET)
类名:Security using System; using System.Security.Cryptography; using System.IO; using System.Text; na ...