search

Home  >  Q&A  >  body text

Vim uses tern-for-vim and there is no way to avoid all global variables

Use tern-for-vim to complete js code, but there is no way to complete some global variables, such as: setTimeout setInterval, document and other objects.

As shown below


Completion of ordinary variables is normal

ringa_leeringa_lee2774 days ago679

reply all(2)I'll reply

  • 迷茫

    迷茫2017-05-16 16:39:48

    The configuration of YCM javascript has been modified, and it can now be triggered automatically. https://github.com/ruanyl/bigvim/commit/7db7951aba173eab6d93858f212b79b88c84da49

    reply
    0
  • ringa_lee

    ringa_lee2017-05-16 16:39:48

    Thank you, the problem is solved

    reply
    0
  • Cancelreply