Hello,
I'm having a strange problem with tags in vim 7.1 that I've just installed.
My Cygwin version is 1.5.25-14.
I'm experimenting in directory c:/temp where I have a source file
"test.c" and a tag file "tagfile" (see below).
I also set environment variable EXINIT as "set tags=tagfile".
File test.c :
------------------------
int my_function (int aaa)
{
}
------------------------
Depending on how the path to the source file is written in my tagfile,
the command "vim -t my_function" executes differently :
*** Case (1)
tagfile:
------------------------
my_function $TESTDIR/test.c /^int my_function (int aaa)$/
------------------------
Environment variable TESTDIR is defined as "c:/temp".
Command "vim -t my_function" brings vim that reports:
------------------------
"/cygdrive/c/Temp/tes#" [New File]
E434: Can't find tag pattern
------------------------
*** Case (2)
tagfile:
------------------------
my_function c:/temp/test.c /^int my_function (int aaa)$/
------------------------
Command "vim -t my_function" CRASHES vim (segmentation fault) ....
*** Case (3)
tagfile:
------------------------
my_function /cygdrive/c/temp/test.c /^int my_function (int aaa)$/
------------------------
Only here the command "vim -t my_function" correctly loads test.c and
finds the tag.
Is it a known problem?
Is there any cure for cases (1) and (2) ?
Is there a workaround?
Thank you,
Alex
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/