Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 857 Bytes

File metadata and controls

24 lines (17 loc) · 857 Bytes

vim-node-syntax

additional JavaScript/TypeScript syntax highlight for Node.js

How to use

using pathogen

Install pathogen. Then download or git clone this repository to your bundle directory:

cd ~/.vim/bundle && \
git clone git@github.com:peecky/vim-node-syntax.git

manual install

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.

TypeScript

Because the syntax of TypeScript is not pre-installed to vim, you should also install leafgarland/typescript-vim.