我正在尝试在Vim中设置Rust支持。我有:
{
"Status": "active",
"items": {
"0": {
"id": "si_DlwSpUvFPN6Mje",
"deleted": "true"
},
"1": {
"plan": "plan_Dk4I92tnE0cmXS"
}
}
}
...运行:
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Nov 29 2017 18:37:46)
Included patches: 1-503, 505-680, 682-1283
我已经将x86_64-apple-darwin (darwin17)
存储库克隆到rust-lang/rust.vim
中,然后以相同的方式安装Syntastic。在阅读了有关Vim8软件包系统的几个网站之后,我认为不需要在~/.vim/pack/plugins/start/rust.vim
中“注册”插件。
然后我开始编写代码,但是注意到vimrc
关键字根本没有突出显示。此外,尽管应该有match
和no help for rust-syntastic
。
我已经检查了no help for syntastic-checkers
,这些是:scriptnames
和rust.vim
的加载组件:
syntastic
然后,我尝试从22: ~/.vim/pack/plugins/start/rust.vim/plugin/cargo.vim
23: ~/.vim/pack/plugins/start/rust.vim/plugin/rust.vim
24: ~/.vim/pack/plugins/start/rust.vim/ftdetect/rust.vim
25: ~/.vim/pack/plugins/start/syntastic/plugin/syntastic/autoloclist.vim
26: ~/.vim/pack/plugins/start/syntastic/plugin/syntastic/balloons.vim
27: ~/.vim/pack/plugins/start/syntastic/plugin/syntastic/checker.vim
28: ~/.vim/pack/plugins/start/syntastic/plugin/syntastic/cursor.vim
29: ~/.vim/pack/plugins/start/syntastic/plugin/syntastic/highlighting.vim
30: ~/.vim/pack/plugins/start/syntastic/plugin/syntastic/loclist.vim
31: ~/.vim/pack/plugins/start/syntastic/plugin/syntastic/modemap.vim
32: ~/.vim/pack/plugins/start/syntastic/plugin/syntastic/notifiers.vim
33: ~/.vim/pack/plugins/start/syntastic/plugin/syntastic/registry.vim
34: ~/.vim/pack/plugins/start/syntastic/plugin/syntastic/signs.vim
35: ~/.vim/pack/plugins/start/syntastic/plugin/syntastic.vim
36: ~/.vim/pack/plugins/start/syntastic/autoload/syntastic/util.vim
目录中删除rust.vim
,并且语法突出显示保持不变(除~/.vim/pack/plugins/start
和生命周期外,突出显示的所有内容),因此我假定其中一个:>
match
是有条件的,并且由于某种原因该条件未得到满足。我的match
文件包含:
vimrc
我的问题是:
我是否正确安装了这些插件,或者这是它们自身的缺陷?