开发者

Absolute path on Vim 'tags' option

I'm facing a problem to use an absolute path on Vim 'tags' option under Windows XP.

Directory hierarchy:

C:/
| Temp/
| | tags
| test.cpp

Commands below on vim while editing test.cpp

:pw
  C:\

:set tags?
  tags=./tags,tags,'C:/Temp/tags','C:\Temp\tags'

:echo tagfiles()
  []
开发者_运维问答
:echo findfile('tags', 'C:/Temp')
  Temp\tags

So, despite the tag file can be found using findfile(), tag information aren't available to :tag or :ptag commands, and it is not found by tagfiles().

What am I missing here?

Note: I'd like to avoid using relative path and wildcards, as I'm working with a project with multi-level directory hierarchy with a single tag file, and using wildcards would be too slow.


Try :set tags=./tags,tags,c:/Temp/tags.

I think the problem comes from how you wrote the path to tags, quoted.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜