【发布时间】:2016-05-07 08:48:28
【问题描述】:
我通过安装typescript plugin
git clone https://github.com/leafgarland/typescript-vim.git ~/.vim/bundle/typescript-vim
并插入
au BufRead,BufNewFile *.ts setfiletype typescript
进入~/.vim.rc。通过 Syntastic 和 tsc/tslint 进行 Linting 效果很好,并且
:set syntax
显示syntax=typescript。然而,
:syntax
显示No Syntax items defined for this buffer 并且突出显示不起作用。
知道出了什么问题吗?
【问题讨论】:
-
我安装了Pathogen,
~/.vimrc中的au ...指令就是我所需要的。 -
我认为随着时间的推移这已经发生了一些变化。我去了这个插件的 github,现在它只需要这个
git clone https://github.com/leafgarland/typescript-vim.git ~/.vim/pack/typescript/start/typescript-vim来实际工作。
标签: vim typescript vim-syntax-highlighting