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 软件 ...
随机推荐
- nyoj 523 双向广搜
题目链接: http://acm.nyist.net/JudgeOnline/problem.php?pid=523 #include<iostream> #include<cstd ...
- SAP HANA 是什么?
HANA(High-Performance Analytic Appliance)高性能分析设备 HANA是一个软硬件结合体,提供高性能的数据查询功能,用户可以直接对大量实时业务数据进行查询和分析,而 ...
- php笔记(四)PHP类和对象之对象继承
建立一个Truck类,扩展Car类,并覆盖speedUp方法,使速度累加50 <?php class Car { public $speed = 0; //汽车的起始速度是0 public fu ...
- Chloe and pleasant prizes
Chloe and pleasant prizes time limit per test 2 seconds memory limit per test 256 megabytes input st ...
- crontab 的例子
0 5 * * * python /home/iscas/xiujinnews/wangyi.py >>/home/iscas/xiujinnews/l og/wangyi.log 2&g ...
- Latex问题收集
1. Latex中的空格 两个quad空格 a \qquad b 两个m的宽度 quad空格 a \quad b 一个m的宽度 大空格 a\ b 1/3m宽度 中等空格 a\;b 2/7m宽度 小空格 ...
- zTree模糊查询人员姓名:getNodesByParamFuzzy
以前使用zTree,不知道有getNodesByParamFuzzy这个模糊查询的方法,所以用了比较笨的方法,比如:功能要求(模糊查询人员姓名),先获得用户输入的名称,然后到数据库或者缓存中去查找,然 ...
- C#中的??是什么意思
C#中的??是什么意思 DJ8Angus | 浏览 49982 次 2012-01-16 12:07 2012-01-16 12:23 最佳答案 如果不赋予初值,C#的变量是不允许直接使用的 ...
- ACdream 1028 Path
先思考一下序列上应该怎么做. 如果某段和为x,并且x为偶数,那么比x小的偶数,一定是这段的子段. 如果某段和为x,并且x为奇数,那么比x小的奇数,一定是这段的子段. 因此....只要寻找最大的连续的和 ...
- JavaScript事件响应的基础语法总结
1.onclick是鼠标单击事件,当在网页上单击鼠标时,就会发生该事件.同时onclick事件调用的程序块就会被执行,通常与按钮一起使用 //例子 <html> <head> ...