与其他用户共享 Nvim 配置?

与其他用户共享 Nvim 配置?

我目前正在使用 NeoVim,显然它只能以 root 权限运行。

当我以普通用户身份尝试时nvim,显示错误:

rror detected while processing /home/tuananh/.config/nvim/vim-plug/plugins.vim:
line    9:
E117: Unknown function: plug#begin
line   12:
E492: Not an editor command:     Plug 'sheerun/vim-polyglot'
line   14:
E492: Not an editor command:     Plug 'scrooloose/NERDTree'
line   16:
E492: Not an editor command:     Plug 'jiangmiao/auto-pairs'
line   17:
E492: Not an editor command:     Plug 'morhetz/gruvbox'
line   19:
E117: Unknown function: plug#end
Error detected while processing /home/tuananh/.config/nvim/themes/gruvbox.vim:
line    4:
E185: Cannot find color scheme 'gruvbox'
E886: System error while opening ShaDa file /home/tuananh/.local/share/nvim/shada/main.shada for reading: permission denied

我该如何解决这个问题?谢谢

答案1

似乎你也需要为该用户安装 vim 插件。请参阅:https://github.com/junegunn/vim-plug#installation。那么您可能也需要运行:PlugInstall来为该用户安装插件。

相关内容