Vim似乎没有从.vim / pack文件夹中安装的软件包中加载语法

时间:2018-10-13 08:36:38

标签: macos vim rust

我正在尝试在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关键字根本没有突出显示。此外,尽管应该有matchno help for rust-syntastic

我已经检查了no help for syntastic-checkers,这些是:scriptnamesrust.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和生命周期外,突出显示的所有内容),因此我假定其中一个:

  1. 语法未加载(并且我需要对插件进行其他配置)。
  2. 突出显示match是有条件的,并且由于某种原因该条件未得到满足。
  3. 我的Rust和Cargo安装出现问题。

我的match文件包含:

vimrc

我的问题是:
我是否正确安装了这些插件,或者这是它们自身的缺陷?

0 个答案:

没有答案