How to run vim with plugins?

江枫思渺然 提交于 2020-03-25 18:36:46

问题


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,

  1. Run

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

to clone Vundle into your .vim directory.

  1. Add your plugin requirements in to .vimrc (Follow the .vimrc template in the Vundle official repository quick start section)

  2. Inside vim, type :PluginInstall and hit enter. Colon mark initiates vim commands.

  3. After the installation is complete, restart vim.



来源:https://stackoverflow.com/questions/46695637/how-to-run-vim-with-plugins

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!