O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Do it yourself

You could always decide to take the DIY route and implement your own solution for storing plugins. That's what we effectively did in the previous chapter, albeit with less bells and whistles.

Since most plugins are available on GitHub, a popular way of making sure that the plugins are up to date is installing them as Git submodules. If you're familiar with Git, you can initialize a repository in your .vim folder and install plugins as submodules.

Vim 8 introduced a native way to load plugins, by expecting the files to be in a directory tree under .vim/pack. Vim 8 expects the following structure of the files:

  • .vim/pack/<any-directory-name>/opt/ is used for plugins you want to manually load
  • .vim/pack/<any-directory-name>/start/ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required