Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slows down the Vim on switching between tabs and buffers #189

Open
vitaly-zdanevich opened this issue Dec 5, 2017 · 6 comments
Open

Slows down the Vim on switching between tabs and buffers #189

vitaly-zdanevich opened this issue Dec 5, 2017 · 6 comments

Comments

@vitaly-zdanevich
Copy link

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

Few seconds is a very long delay :(

@vitaly-zdanevich
Copy link
Author

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

@vitaly-zdanevich
Copy link
Author

Can not reproduce now.

@simonsmith
Copy link

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

@markonm
Copy link
Contributor

markonm commented Dec 28, 2017

Sounds like #29 (comment)
Try adding let g:tern#arguments = ["--persistent"] to your vimrc to force tern server not to shut down itself.

@simonsmith
Copy link

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

@nickspoons
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants