/typescript-vim

Typescript syntax files for Vim

Primary LanguageVim Script

Typescript Syntax for Vim

Syntax file and compiler settings for TypeScript. The syntax file is taken from this blog post.

Compiler settings

The compiler settings enable you to call the tsc compiler directly from Vim and display any errors or warnings in Vim's QuickFix window.

To run the compiler, enter :make %, this will run tsc against the last saved version of your currently edited file.

Note, you can use something like this in your .vimrc to make the QuickFix window appear as soon as you have any errors.

autocmd QuickFixCmdPost [^l]* nested cwindow
autocmd QuickFixCmdPost    l* nested lwindow

Obligatory screenshot