Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

ViM: Add or Update Plugins On The Fly

📅 2010-Nov-29 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

ViM does not have a robust way to install, update or uninstall plugins on the fly. So, typically ViM needs to be restarted to use new or updated plugins. However, most plugins are harmless and can be added or updated into a running ViM session. To do this invoke the command:

:runtime! plugin/*.vim

This command should be executed after the new plugin files have been placed into their destination plugin/ directory. It tries to execute all the ViM scripts in all the plugin/ directories present in the runtimepath. The commands and features exposed by the new plugin should be available inside a ViM session after executing this command.

For more info type :help runtime