vim 无法使用 or 加载 vim-plug

2022-08-09 15:37:36 +08:00
 QurakJaker

首先 plug.vim 已经安装到 ~/.vim/autoload/plug.vim 但是在 vim :scriptnames 输出没有显示 plug.vim

::scriptnames
  1: ~/.vimrc
  2: /opt/homebrew/Cellar/vim/9.0.0150/share/vim/vim90/plugin/getscriptPlugin.vim
  3: /opt/homebrew/Cellar/vim/9.0.0150/share/vim/vim90/plugin/gzip.vim
  4: /opt/homebrew/Cellar/vim/9.0.0150/share/vim/vim90/plugin/logiPat.vim
  5: /opt/homebrew/Cellar/vim/9.0.0150/share/vim/vim90/plugin/manpager.vim
  6: /opt/homebrew/Cellar/vim/9.0.0150/share/vim/vim90/plugin/matchparen.vim
  7: /opt/homebrew/Cellar/vim/9.0.0150/share/vim/vim90/plugin/netrwPlugin.vim
  8: /opt/homebrew/Cellar/vim/9.0.0150/share/vim/vim90/plugin/rrhelper.vim
  9: /opt/homebrew/Cellar/vim/9.0.0150/share/vim/vim90/plugin/spellfile.vim
 10: /opt/homebrew/Cellar/vim/9.0.0150/share/vim/vim90/plugin/tarPlugin.vim
 11: /opt/homebrew/Cellar/vim/9.0.0150/share/vim/vim90/plugin/tohtml.vim
 12: /opt/homebrew/Cellar/vim/9.0.0150/share/vim/vim90/plugin/vimballPlugin.vim
 13: /opt/homebrew/Cellar/vim/9.0.0150/share/vim/vim90/plugin/zipPlugin.vim

我已经将 .vimrc 清空了

就算强制加载 plug.vim 也无法使用

:PlugInstall
E492: 不是编辑器的命令: PlugInstall
648 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/871699

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX