I installed the typescript plugin via
git clone https://github.com/leafgarland/typescript-vim.git ~/.vim/bundle/typescript-vim
and inserted
au BufRead,BufNewFile *.ts setfiletype typescript
into by ~/.vim.rc
. Linting via Syntastic and tsc/tslint works well, and
:set syntax
shows syntax=typescript
. However,
:syntax
shows No Syntax items defined for this buffer
and highlighting doesn't work.
Any idea what's going wrong?
au ...
instruction in the~/.vimrc
is all I need. – bloodyKnucklesgit clone https://github.com/leafgarland/typescript-vim.git ~/.vim/pack/typescript/start/typescript-vim
to actually work. – DAEMonRaco