简体   繁体   English

如何禁用Vim中标签的TAB完成?

[英]How to disable TAB completion for tags in Vim?

I created tags file using ctags. 我使用ctags创建了标签文件。

Now when I`m trying to use TAB for text completion from buffers I also see all tags in my popup. 现在,当我尝试使用TAB从缓冲区完成文本时,我也会在弹出窗口中看到所有标签。

How to prevent that and not show tags in completion popup? 如何防止这种情况并且不在完成弹出窗口中显示标签?

I`m using SuperTab, without any options specified. 我使用SuperTab,没有指定任何选项。

You can try this setting: 您可以尝试以下设置:

:set cpt-=t

The default value of complete option is .,w,b,u,t,i , which means to scan: complete选项的默认值为.,w,b,u,t,i ,表示扫描:

  1. the current buffer 当前的缓冲区
  2. buffers in other windows 其他窗口中的缓冲区
  3. other loaded buffers 其他加载缓冲区
  4. unloaded buffers 卸载缓冲区
  5. tags 标签
  6. included files 包含文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM