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....
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.
Some third party plugins may enhance the defaults but Javascript is supported natively so you don't need to download anything for Vim to detect and highlight .js files.
What node.vim file are you talking about? Does it come from that plugin?