xolox / vim-easytags

Automated tag file generation and syntax highlighting of tags in Vim
http://peterodding.com/code/vim/easytags/
1.01k stars 109 forks source link

Custom command line options do not work #124

Open ghost opened 9 years ago

ghost commented 9 years ago

First let me say that easytags (ctags) defaults are great for browsing code but for languages that i work with more often I like more reach for both jumping and for neocomplete.

For example, for C code I like to include header files but found _g:easytags_includemembers to be too broad. I have my own script which provides options to ctags

For Python I use the following:

ctags -R --language-force=python --python-kinds=-i

I cannot get these options read by vim-easytags. I have tried:

let g:easytags_opts = ['-R', '--language-force=python', '--python-kinds=-i']

then ...

let g:easytags_cmd = '/usr/local/bin/ctags -R --language-force=python --python-kinds=-i'

then ...

let g:easytags_opts = ['--options=$HOME/dotfiles/ctags/python.cnf']

Where python.cnf is:

-R
--language-force=python
--python-kinds=-i

None of these work. Now I just disable easytags for python and set my own command (not so cool):

ftplugin/python.vim

" Disable Easytags for Python
let g:easytags_on_cursorhold = 0
let g:easytags_auto_update = 0
let g:easytags_auto_highlight = 0
command! UpdateTags execute ":silent ! ctags -R --language-force=python --python-kinds=-i "| execute ":redraw!"
autocmd BufWrite * :UpdateTags

Is this a bug or have i missed something?

easytags.vim 3.11 Ctags: Available version (5.8) is higher than expected version (5.5).easytags.vim 3.11: Version is compatible! :-)

N.B I do get the following error but don't think its related not found in 'runtimepath': "autoload/xolox/shell.vim