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.)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.