Hi list,

I first noticed the following issue a long time ago when I was still using Vim 7.2 but I just found that it still applies to Vim 7.3c:

When Vim expands the 'tags' option it also considers the 'suffixesadd' option. Because I have ":set suffixesadd=.vim" in my ~/.vimrc (so that :find automatically adds the extension ".vim" which seems like a valid use case to me?) the following then happens to me from time to time:

$ vim -u NONE -U NONE --noplugin -N --cmd 'cd $VIMRUNTIME/syntax | set sua=.vim | echo tagfiles() | echo taglist(".")' --cmd quit
['tags.vim']
Error detected while processing pre-vimrc command line:
E431: Format error in tags file "tags.vim"
Before byte 95
[]

I don't know whether Vim expands the 'tags' option using the same internal code that drives glob(). If that is the case then simply passing flag=1 (internally) should fix the issue.

Unless this is all intentional, in which case it seems appropriate IMHO to mention this behavior near :help 'tags' or :help 'suffixesadd'.

 - Peter Odding

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui