Vim 插件加载失败。

Vim plugin failing to load.

我有一个 vim configuration on github with a single plugin 作为子模块。

我在新用户区设置如下:

  561  git clone --recurse-submodules https://github.com/joereddington/dotvimdirectory/
  562  mv dotvimdirectory/ .vim
  563  ls .vim
  564  $ ln -s ~/.vim/vimrc ~/.vimrc
  565  ln -s ~/.vim/vimrc ~/.vimrc
  568  vim todo.txt 

但是签出的子模块没有给我任何映射:

(vim 中 :map 的结果)

尽管语法突出显示工作正常:

为什么没有加载插件映射?

你没有在 .vimrc 中打开文件类型插件:

filetype plugin on

这是您的插件使用的。检查 :h ftplugin:h add-filetype-plugin.