vim练级攻略
也参考
http://blog.csdn.net/vaqeteart/article/details/4146618
切换
:bn
:bp
0 → 到行头 ^ → 到本行的第一个非blank字符 $ → 到行尾 g_ → 到本行最后一个不是blank字符的位置。 fa → 到下一个为a的字符处,你也可以fs到下一个为s的字符。 t, → 到逗号前的第一个字符。逗号可以变成其它字符。 3fa → 在当前行查找第三个出现的a。 F 和 T → 和 f 和 t 一样,只不过是相反方向。
这个值得再看一下“转载linux一句话精彩问答”
http://haoningabc.iteye.com/admin/blogs/1071062
上接
删除.svn&Python.h&python-ctags
http://haoningabc.iteye.com/admin/blogs/1084660
配合ctags使用
自动缩进参考http://hanxiao188.blog.163.com/blog/static/36704597200910151301193/
tag-list不是浮云,继续加油吧
set tags最重要
缩进:tabstop
自动缩进:set autoindent
好像是加载插件?:filetype on
颜色:syntax on
search高亮:set hlsearch
" Configuration file for vim filetype on set modelines=0 " CVE-2007-2438 " Normally we use vim-extensions. If you want true vi-compatibility " remove change the following statements set nocompatible " Use Vim defaults instead of 100% vi compatibility set backspace=2 " more powerful backspacing " Don't write backup file if vim is being called by "crontab -e" au BufWrite /private/tmp/crontab.* set nowritebackup " Don't write backup file if vim is being called by "chpass" au BufWrite /private/etc/pw.* set nowritebackup syntax on set tags=/Users/apple/red54apple/cas/cas/castags set tabstop=4 set autoindent set hlsearch
http://vim-taglist.sourceforge.net/installation.html
下载,放到~/.vim下面
apple:.vim apple$ tree . ├── doc │ └── taglist.txt └── plugin └── taglist.vim 2 directories, 2 files apple:.vim apple$
:Tlist
You can now use the ":TlistToggle" command (previously ":Tlist") to open/close the taglist window. You can use the ":help taglist" command to get more information about using the taglist plugin.
然后就该看这个了
http://wenku.baidu.com/view/1f2a4a22af45b307e8719740.html
:sf filename <c> +w h <c> +w l 回车
<CR> 跳到光标下tag所定义的位置,用鼠标双击此tag功能也一样 o 在一个新打开的窗口中显示光标下tag <Space> 显示光标下tag的原型定义 u 更新taglist窗口中的tag s 更改排序方式,在按名字排序和按出现顺序排序间切换 x taglist窗口放大和缩小,方便查看较长的tag + 打开一个折叠,同zo - 将tag折叠起来,同zc * 打开所有的折叠,同zR = 将所有tag折叠起来,同zM [[ 跳到前一个文件 ]] 跳到后一个文件 q 关闭taglist窗口 <F1> 显示帮助