search

Home  >  Q&A  >  body text

How to let gvim read plugins from ~/.gvim?

gvim can read plug-ins from .gvimrc, but the plug-ins are still loaded from .vim. Can gvim also load plug-ins from the .gvim folder?

我想大声告诉你我想大声告诉你2773 days ago911

reply all(3)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-16 16:45:08

    Try this

    set rtp+=/path/to/.gvim

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-16 16:45:08

    @jKey’s method is feasible. gvim will try to load plug-ins, documents and other files in rtp, which is the runtimepath, so you only need to add a path to rtp

    Actually, I would like to recommend a vim extension called vundle https://github.com/gmarik/vundle. It will create a separate folder for each different plug-in. The principle is achieved through the management of rtp. The folder is separated to facilitate deletion of plug-ins later.

    Because he installs the plug-in through git+github, it is also very convenient to update/install the plug-in. It solves the difficult problem of gvim plug-in management very well.

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-16 16:45:08

    Old way

    ln -s ~/.vim ~/.gvim

    reply
    0
  • Cancelreply