additional JavaScript/TypeScript syntax highlight for Node.js
Install pathogen. Then download or git clone this repository to your bundle directory:
cd ~/.vim/bundle && \
git clone [email protected]:peecky/vim-node-syntax.git
Download syntax files to somewhere.
Then add the followings to your .vimrc
autocmd Syntax javascript source ~/.vim/node/javascript.vim
autocmd Syntax typescript source ~/.vim/node/typescript.vim
where ~/.vim/node/
is the path you downloaded the files.
Because the syntax of TypeScript is not pre-installed to vim, you should also install leafgarland/typescript-vim.