VIM+Ctags doesn't work in WinXP

693 Views Asked by At

Okay guys, you're my only help :)

I have GVim v. 7.3, Exuberant CTags 5.8, omnicppcomplete (0.41) - all latest, to be exact. I'm trying to generate tags to use in VIM, but it seems to totally ignore data in tags file.

I've used ctags to generate tags file for bada framework - the file seems to be okay, class definitions present etc. I also tried to apply the same command to STL from Visual Studio.

ctags -R --c++-kinds=+p --fields=+iaS --extra=+q --language -force=C++ "c:\bada\1.0.0\Include\"

Also, I've mapped generating tags via hotkey.

map <C-F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .

Trying to use any of files generated by these commands did not succeed. The command :tags shows empty tag list, but doesn't give any error, and I have no clue how to fix this.

2

There are 2 best solutions below

0
On

Yes, seems that vim actually handles spaces in a weird way (Windows only?), however there are workarounds: either use dos 8.3 short names or use a wildcard instead of a space (?), like

set tags=c:\program?files?(x86)\vim\tags

PS: which tag files was successfully loaded could be checked with the

:echo tagfiles()

command

1
On

The problem was with path to tags file: c:\Program Files\Vim\bada. The VIM didn't want to parse string with spaces no matter what the slashes/backslashes used.

Reinstalling VIM to c:\VIM solved the problem.