C/C++/Linux/Embedded

学习也是一种乐趣
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

统计

  • 随笔 - 4
  • 文章 - 4
  • 评论 - 4
  • 引用 - 0

常用链接

留言簿(1)

随笔档案

文章分类

文章档案

收藏夹

搜索

  •  

最新评论

阅读排行榜

评论排行榜

一个VIM的脚本
使用VIM编写程序,发现切换头文件和代码文件很麻烦,发现一个好东西A.vim,具体使用参数如下:
A switches to the header file corresponding to the current file being edited (or vise versa)
:AS splits and switches
:AV vertical splits and switches
:AT new tab and switches
:AN cycles through matches
:IH switches to file under cursor
:IHS splits and switches
:IHV vertical splits and switches
:IHT new tab and switches
:IHN cycles through matches
<Leader>ih switches to file under cursor
<Leader>is switches to the alternate file of file under cursor (e.g. on  <foo.h> switches to foo.cpp)
<Leader>ihn cycles through matches
下载地址如下:http://www.vim.org/scripts/script.php?script_id=31
下载后放到/usr/share/vim/vim61/plugin/就可以了,如果启动时候有错误,就下载一个老一点的版本.

posted on 2007-03-31 10:26 陈长虹 阅读(412) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理