惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Microsoft Security Blog
Microsoft Security Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
V
Visual Studio Blog
宝玉的分享
宝玉的分享
IT之家
IT之家
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
I
InfoQ
B
Blog RSS Feed
T
Threatpost
博客园_首页
M
MIT News - Artificial intelligence
Spread Privacy
Spread Privacy
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Know Your Adversary
Know Your Adversary
U
Unit 42
Engineering at Meta
Engineering at Meta
C
Cyber Attacks, Cyber Crime and Cyber Security
月光博客
月光博客
Scott Helme
Scott Helme
T
Tor Project blog
有赞技术团队
有赞技术团队
AWS News Blog
AWS News Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Last Week in AI
Last Week in AI
S
Schneier on Security
Vercel News
Vercel News
博客园 - Franky
C
Cybersecurity and Infrastructure Security Agency CISA
L
LINUX DO - 热门话题
NISL@THU
NISL@THU
L
LangChain Blog
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
The GitHub Blog
The GitHub Blog
雷峰网
雷峰网
Latest news
Latest news
C
CXSECURITY Database RSS Feed - CXSecurity.com
Hugging Face - Blog
Hugging Face - Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
G
GRAHAM CLULEY
S
Security Affairs
A
About on SuperTechFans
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
大猫的无限游戏
大猫的无限游戏
W
WeLiveSecurity
Cisco Talos Blog
Cisco Talos Blog
罗磊的独立博客

博客园 - InterMa

离开了。。。 安装ubuntu6.06的一个应注意之处 - InterMa - 博客园 今天和同学们包饺子啦~ - InterMa - 博客园 。。。。。。 关于ODR和Template 第3方client连接talk.google.com的一些注意之处 王国维 之 三境界 Castle ActiveRecord中ntext类型的映射 给俱乐部中的朋友们问个好~ :-) 函数调用与堆栈清理 使用Castle ActiveRecord的几点小经验 拳脚小功夫,容人大丈夫 No Touch Required 一些页面配色的资源【存档自用】 Vim7下配置C/C++的Omni complete Richard Stallman和自由软件运动 扯2,3事 写了一个Google登陆风格的table 最近正在FPS。。。
Vim7下配置Python的Omni complete
InterMa · 2006-09-23 · via 博客园 - InterMa

Posted on 2006-09-23 13:40  InterMa  阅读(2428)  评论()    收藏  举报

配了好长时间都没搞定,弄得我很不爽,一怒之下立下军令状,不弄好不吃饭,于是弄好了。。。

写一下配置过程:(我的系统debian 3.1, vim7, python2.4)
[1] 下载vim7的源码包(http://www.vim.org),sjtu的源里边好像还没有vim7呢。
[2] 编译:
      ./configure --enable-pythoninterp 
      make
      make install
[3] 在你的~/.vimrc中加入filetype plugin on,然后检查一下是否已经好了:
      随便vi一个py文件,然后输入类似:
      import os
      os. {^x^o}
      看看自动补全出来没?如果提示一堆错误,那就恭喜你,接着看下边的解决方案吧。
      要是自动补全出来了,那就到此结束,bs我吧。
[4] vim7中:version一下,看看feature中是否有+python,如果这里是-python,那就是你没有打开vim7对python的支持,要重新编译了:
      ./configure --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.4/config/
      make 
      make install
      注意那个/usr/lib/python2.4/config/目录,如果你没有这个目录,那就是你没安python-dev包(不是python的运行包),apt-get一下吧。
      然后密切注视configure的过程,留意其中是否有错误。
[5] 这回再:version一下,应该看到+python了,如果还是-python,那就看看步骤[4]中是否出错了。
      同时安装过程中还有许多要注意的小问题,我这里就不一一详述了,相信google一下你就能解决。
      最后别忘了仔细阅读一下pythoncomplete的介绍(http://www.vim.org/scripts/script.php?script_id=1542

      最后发一个弄好后的截图,嘿嘿