我已按照以下说明在MacOsx上安装了typescript-vim:
git clone https://github.com/leafgarland/typescript-vim.git ~/.vim/plugged/typescript-vim
我已将此代码放置在.vimrc
文件中:
Plug 'leafgarland/typescript-vim'
然后:
:PlugInstall
所以插件已经安装了,但是当我在vim中打开任何文件时,我得到了错误:
Error detected while processing FileType Autocommands for "typescript":
E492: Not an editor command: JsPreTmpl html
(按ENTER命令后,我可以继续工作)
答案 0 :(得分:0)
通过在Vim缓冲区中从vim-js-pretty-template调用:JsPreTmpl html
命令,而没有在我的Vim软件包中安装该插件,我能够产生这样的错误。
签出.vimrc
或.vimrc.local
-我猜您会看到autocmd FileType javascript JsPreTmpl html
行。如果是这样,您有两个选择可以使此错误消失:删除自动命令或安装插件。