Search code examples
vimctagsqnxexuberant-ctags

Integrating ctags in vim 7.4 in windows 7, Also QNX Momentics on it


I have installed vim 7.4 in a windows 7 machine. The ctags that comes with it seems to be broken. When I do :!ctags -R . from within vim I get :

C:\WINDOWS\system32\cmd.exe /c (ctags -R .)
Input file specified two times.

ctags: cannot sort tag file : No such file or directory
shell returned 1
Hit any key to close this window...

In this case ctags creates a tags file that is empty. I then installed ctags from sourceforge And it works.

But I could not find how I should tell vim to use the ctags I just doenloaded.

ctags installed in vim is 5.2.3

ctags from sourceforge is 5.8

I tried:

enter link description here

let g:netrw_ctags = "C:/Users/aslavcd/Program Files/ctags58/ctags.exe"

To wherever ctags is. But it doesn't change it.

Problem Resolved. I had an older version of ctags installed by another program and added to Path.


Solution

  • OK. Silly answer. I had an older version installed by QNX Momentics and, of course, added to path.

    Further information: QNX 6.5.0 puts its unix executables (like ls, mkdir, etc.) in the path, which is aproblem because I then ended up with two ctags executables in the path. In QNX 6.6.0. and later the instalation doesn't put the QNX executables in the path directly but uses a .bat file that is has to be executed in order to have them (like when you need compilation).