问题
I followed guide for vim with python, that means:
1. I added all plugins to .vimrc;
2. Installed plugins with vim-command :PluginInstall.
But when I open project like $ vim /path/to/project or some file, I get nothing: no plugins on fire or any settings from .vimrc.
Can you help me with what I do wrong and how run vim with my plugins? Thanks!
回答1:
You need at least install a plugin manager like Plug before running:
:PlugInstall
So, you have to follow the instructions on the plugin's page.
回答2:
:PluginInstall command is from the vim plugin manager "Vundle".
Without a plugin manager, cloning / copying plugin files and updating them is really hard. What Vundle (Vim-bundle) does is, it reads your plugin requirements from ~/.vimrc file, and manages them for you.
To start with Vundle,
- Run
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
to clone Vundle into your .vim directory.
Add your plugin requirements in to .vimrc (Follow the .vimrc template in the Vundle official repository quick start section)
Inside vim, type
:PluginInstalland hit enter. Colon mark initiates vim commands.After the installation is complete, restart vim.
来源:https://stackoverflow.com/questions/46695637/how-to-run-vim-with-plugins