免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1810 | 回复: 0
打印 上一主题 下一主题

[其他] [代码阅读] vim插件taglist函数没有随光标实时移动[已解决] [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-11-08 11:40 |只看该作者 |倒序浏览
本帖最后由 bxfqing 于 2012-11-08 13:08 编辑

[问题]
在阅读代码的时候,光标在各个函数之间会有移动。同时,taglist窗口中也会显示光标正处于哪个函数。

但是taglist窗口中这种显示光标在哪个窗口,好像切换的速度会很慢,目测延时在5-10s左右。不知道可不可以进行设置或者是修改。使taglist实时的实现代码中的光标是处于哪个函数。
[进展]
在taglist.vim中,有如下描述:
  1. " If you place the cursor on a tag name in the "Tag List" window, then the tag
  2. " prototype will be displayed at the Vim status line after 'updatetime'
  3. " milliseconds. The default value for the 'updatetime' Vim option is 4
  4. " seconds. You can also press the space bar to display the prototype of the
  5. " tag under the cursor.
复制代码
按空格可以实时显示当前func name,但是vim 7.3 taglist4.5上测试是没有效果的

[解决方法]
在.vimrc 中修改updatetime时间
  1. set updatetime=100
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP