Ctags: the error ctags: Unrecognized option '-- format = 2' is displayed'
The original taglist plug-in is well used. Since Emacs is installed, the following error is prompted every time the taglist is triggered:
Taglist: failed to generate tags for... (a file)
Ctags: Unrecognized option '-- format = 2' ^ @ ^ Itry 'ctags -- help' for a complete list of options. ^ @
The reason is that there are two ctags in my system. One is exuberant-ctags, the other is GNU's ctags, And the taglist needs to use exuberant-ctags.
1 $whereis ctags 2 ctags: /usr/bin/ctags /usr/local/bin/ctags /usr/share/man/man1/ctags.1.gz 3 /usr/bin/ctags --version 4 Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert 5 Compiled: Mar 6 2010, 20:04:06 6 Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net 7 Optional compiled features: +wildcards, +regex 8 $/usr/local/bin/ctags --version 9 ctags (GNU Emacs 24.2)10 Copyright (C) 2012 Free Software Foundation, Inc.11 This program is distributed under the terms in ETAGS.README
The solution is to specify the ctags in $ home/. vimrc.
let g:Tlist_Ctags_Cmd='/usr/bin/ctags'
References:
Http://www.cnblogs.com/chenchenluo/archive/2012/07/01/2571659.html.