Slows down the Vim on switching between tabs and buffers
Try gt and :tabnext, however starting from the bash is faster.
Few seconds is a very long delay :(
...strange but now switches fast, without restarting of the Vim.
Can not reproduce now.
Having this same issue. Any tips on how to debug are welcomed :)
Sounds like https://github.com/ternjs/tern_for_vim/issues/29#issuecomment-286597843
Try adding let g:tern#arguments = ["--persistent"] to your vimrc to force tern server not to shut down itself.
@xtal8 Already had that, and even tried running my own server. Have since switched to https://github.com/carlitux/deoplete-ternjs and the problem no longer exists.
The slow buffer switch is due to an autocmd which updates the buffer on BufLeave. You can remove that autocmd by adding this to your .vimrc:
autocmd FileType javascript autocmd! TernAutoCmd BufLeave