vim 8 plugins
Published 2020-4-21Watch on YouTube: youtu.be/XIxsD7l4zww
This is a secret that nobody knows, but...
You can load ANY module in vim 8, without a module loader.
1. Update .vimrc
First add packloadall to your .vimrc:
.vimrc:
packloadall
2. Create the plugins directory
Then create a directory ~/.vim/pack/plugins/start:
mkdir -p ~/.vim/pack/plugins/start
Note: the name plugins is actually arbitrary - you could just as well call it ~/.vim/pack/foobar/start,
as all folders under pack will have all .vim files under their start folder loaded
3. Clone a plugin (any plugin)
Finally, clone the plugin repo (i.e. syntastic, sensible, etc) into the start folder.
No change is required by the plugin author. All existing plugins will work.
git clone --depth=1 https://example.com/example.git ~/.vim/pack/plugins/start/example
Example: vim sensible
All you need in the git URL of the the project.
git clone --depth=1 https://tpope.io/vim/sensible.git ~/.vim/pack/plugins/start/sensible
How to Update Vim 8 Plugins
ls ~/.vim/pack/plugins/start | xargs -I{} git pull {}
By AJ ONeal
Thanks!
It's really motivating to know that people like you are benefiting
from what I'm doing and want more of it. :)
Did I make your day?
(you can learn about the bigger picture I'm working towards on my patreon page )
