Tip 5 | Installing Plugins to Your Package |
With Vim 8, the packages feature makes it easy to install plugins without having to rely on a plugin manager. You can install plugins in your package and they will be automatically loaded when Vim starts up.
Preparation
To follow the steps in this tip, you may want to temporarily disable your personal Vim configuration. That way you’ll be able to reproduce the examples listed here without interference from any plugins you may have already installed. To find out how, follow the steps in Using Factory Settings, which also includes instructions on how to restore your own configuration afterward.
Installing Your First Plugin
First, launch Vim and inspect the ‘runtimepath’:
=> | :echo join(split(&runtimepath, ... |
Get Modern Vim now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.