
有大佬遇到过这样的问题吗,之前一直在 Windows 上使用这样的配置,没有出现过任何问题, 不过 Windows 上是放在$VIM/vimfiles/autoload/下的,我看了 plug.vim 的官网,unix 上面也是放在~/.vim/atoload/文件夹下 vim 就会自动加载。
启动 vi m 的时候, 提示 Plug not a command, 这就是没加载到 plug.vim 文件?
1 TimePPT PRO " Specify a directory for plugins " - For Neovim: ~/.local/share/nvim/plugged " - Avoid using standard Vim directory names like 'plugin' call plug#begin('~/.vim/plugged') |
2 TimePPT PRO Plug 'xxxxxxxx' " Initialize plugin system call plug#end() |
3 TimePPT PRO Usage Add a vim-plug section to your ~/.vimrc (or ~/.config/nvim/init.vim for Neovim): Begin the section with call plug#begin( ) List the plugins with Plug commands call plug#end() to update &runtimepath and initialize plugin system Automatically executes filetype plugin indent on and syntax enable. You can revert the settings after the call. e.g. filetype indent off, syntax off, etc. https://github.com/junegunn/vim-plug/blob/master/README.md#usage |
4 582033 2017-10-01 08:01:51 +08:00 runtime 装了么 |
5 582033 2017-10-01 08:03:17 +08:00 如果是在非标准 linux 环境下, 比如 openwrt entware 之类的,确保你装的是 vim-full, 而不是 vim |
6 quinoa42 2017-10-01 10:18:20 +08:00 看看`set runtimepath?`的输出 |
14 582033 2017-10-02 19:04:24 +08:00 via Android 那你试试我这个看看能加载不,我的也是在 mac 下面,记得改下 install.bash; 不要创建 bashrc 的软连接 https://github.com/582033/vim.git 如果不能那看来是环境问题,再逐步排除 |
15 BBCCBB OP |