tern_for_vim icon indicating copy to clipboard operation
tern_for_vim copied to clipboard

Slows down the Vim on switching between tabs and buffers

Open vitaly-zdanevich opened this issue 8 years ago • 6 comments

Try gt and :tabnext, however starting from the bash is faster.

Few seconds is a very long delay :(

vitaly-zdanevich avatar Dec 05 '17 09:12 vitaly-zdanevich

...strange but now switches fast, without restarting of the Vim.

vitaly-zdanevich avatar Dec 05 '17 14:12 vitaly-zdanevich

Can not reproduce now.

vitaly-zdanevich avatar Dec 06 '17 04:12 vitaly-zdanevich

Having this same issue. Any tips on how to debug are welcomed :)

simonsmith avatar Dec 11 '17 11:12 simonsmith

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.

markonm avatar Dec 28 '17 19:12 markonm

@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.

simonsmith avatar Dec 28 '17 20:12 simonsmith

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

nickspoons avatar Aug 22 '18 06:08 nickspoons