I usually write more js. I installed youcomplete according to what is said on the Internet, but the automatic completion of native js is not very good. I saw on the Internet that using tern-for-vim configuration can complete the automatic completion of vim very well. Complete. But it will not take effect after installation. The specific configuration is as follows:
image description
This is my vim configuration. These two lines are for tern_for_vim. If these two lines are correct, there should be no problem.
https://github.com/ruanyl/bigvim/blob/master/vimrc.bundles#L77
https://github.com/ruanyl/bigvim/blob/master/vimrc.bundles#L303