I have xolox/vim-easytags and xolox/vim-misc installed. I have following configuration in vimrc:

let g:easytags_dynamic_files = 1
let g:easytags_on_cursorhold = 1
let g:easytags_updatetime_min = 4000
let g:easytags_auto_update = 1
let g:easytags_async = 1
let g:easytags_by_filetype = '~/tagfiles'
let g:easytags_languages = {
\   'javascript': {
\     'cmd': 'jsctags',
\       'args': ['-f']
\   }

and the g:easytags_events's value is ['BufWritePost', 'CursorHold', 'CursorHoldI']

Now I hold my cursor for more than 10 seconds, but the tags is not updated to ~/.vimtags or any other possible tag files, what's the problem here?

But tags will be updated when I write the buffer to file.

  • Does it update with :doautocmd CursorHold? What's the output of :set eventignore?? – Ingo Karkat Sep 7 '16 at 14:27
  • If all fails, try gutentags, seems well maintained. – VanLaser Sep 7 '16 at 15:17
  • 1
    Why don't you use the plugin's issue tracker/mailing list? – romainl Sep 7 '16 at 15:58
  • @IngoKarkat, no, it still doesn't update with :doautocmd CursorHold. the output of :set eventignore? is empty. – Aaron Shen Sep 8 '16 at 0:32
  • Hm, then the autocmd isn't triggered. According to your config, it should be defined. You can check via :autocmd CursorHold; a call to easytags should be listed there. – Ingo Karkat Sep 8 '16 at 7:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.