Search code examples
node.jsvimvim-pluginneovim

vim plugin for node.js programming and syntax highlighting? (and how)


in the case of javascript syntax highlighting, I just had to download javascript.vim file and place the file in the corresponding folder, and vim would automatically make syntax highlighting when I open .js files.

But how does node.vim work?? Where should I place the node.vim file for vim to understand that I am working on node applications and apply the node syntax highlighting??

Thanks in advance....


Solution

  • Node.vim has a few ways to install it listed in its README. Did you have trouble with them?

    I personally use and suggest Pathogen together with Git. In Node.vim's case installing it would be only:

    git clone https://github.com/moll/vim-node.git ~/.vim/bundle/node
    

    Pathogen would then find Node.vim on next startup and initialize it.