Menu

How to Get Syntax Highlighting for TypeScript in GVIM on Windows

urghh... Looks terrible doesn't it? It's not provided by default, but if you need to work with a TypeScript project in vim then you'll certainly need to set up syntax highlighting.

The good news is that it's very easy to get going with a vim addon called typescript-vim. This link is all you need if you already have a vim addon manager, but otherwise I'd recommend you install pathogen.

To install pathogen on Windows, you'll need to download pathogen.vim from https://github.com/tpope/vim-pathogen/ and place it under %USERPROFILE%\vimfiles\autoload (for me, that was C:\Users\glcheetham\vimfiles\autoload\pathogen.vim). The easiest way to do this is to execute the following in a shell: