我承认abs是看几遍都不算多的书
dive into python
http://woodpecker.org.cn/diveintopython/
goagent备份
http://hi.baidu.com/suyuwen1/blog/item/43cb5f2c8c1d75f58a139991.html
如果安装python插件的时候报“Python.h: 没有那个文件或目录”
aptitude install python-dev
easy_install python-ctags
网络不好使就去http://code.google.com/p/python-ctags/
下载python-ctags 按照安装
python ./setup.py build
python ./setup.py install
ctags --fields=afmikKlnsStz readtags.c ./include/readtags.h
到python工程目录
ctags -R 生成tags文件
如果想生成多个目录下的并指定文件名:
ctags -R -f ptags /opt/www/cas /usr/local/lib/python2.7/dist-packages/django
cd ~
vim .vimrc
set tags=/opt/www/ccc/ptags
或者vim打开文件后用
:set tags=/opt/www/ccc/ptags
<n ]> <n o> <n t>
多个匹配
当一个函数(或类中的方法)被定义多次,":tags" 命令会跳转到第一处。 如果在当前文件中存在匹配,那它将会被首先使用。 你现在可以跳转到同一个标签的其它匹配处: :tnext 重复执行这个命令可以找到更多的匹配。如果存在很多匹配,你可以选择要跳转到哪一个: :tselect tagname Vim会为你展示一个选择列表 你现在可以输入要跳转到的匹配代号(在第一列).其它列的信息可以让你知道匹配在何处被定义可以用这些命令在各匹配的标签间移动: :tfirst 到第一个匹配 :[count]tprevious 向前 [count] 个匹配 :[count]tnext 向后 [count] 个匹配 :tlast 到最后一个匹配如果没有指定,[count] 省缺为1
什么tag-list都是浮云放弃