I can use taglist with gvim (launched from xterm) but not in vim(opened in putty). I get the following error when I try using taglist from vim Taglist: Failed to generate tags for /home/abbcd/abcd/XXXX.c
ctags: unrecognized option '--format=2'^@^ITry 'ctags --help' for a complete list of options.^@
Wondering why it works fine with gvim and not in vim.
From the comments, the difference is in how $PATH
is being set depending on how you connect.
The taglist.vim
plugin file has a comment that says:
- If the exuberant ctags utility is not present in your PATH, then set the
Tlist_Ctags_Cmd
variable to point to the location of the exuberant ctags utility (not to the directory) in the .vimrc file.
So add a line to your .vimrc
file with something like:
let g:Tlist_Ctags_Cmd = '/usr/local/bin/ctags'
Use the path to the ctags binary that is working correctly for you. (The one returned by which ctags
in the xterm.)