This is a quick reminder on how to install Vim plugins with Vim-Plug plugin tool. As an example we install Apache Velocity template syntax plugin to Vim.
Why to do this? Because Vim is an extremely powerful editor and even more so when it is syntax aware. Things like syntax highlighting and indenting are just icing on the cake.
Install git from your package repository.
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Set ~/.vimrc to contain following :
call plug#begin('~/.vim/vimplugins') Plug 'https://github.com/lepture/vim-velocity.git' call plug#end()
You can select the directory of your choosing, preferrably not a very typical one to avoid collisions with other plugin managers. You can insert as many plugins as you like using Plug statements.
Add plugin URLs to .vimrc as stated above, launch Vim and enter a command :
:PlugInstall
Descriptions of available commands:
Exit Vim and continue your work with your new plugin.. and see syntax errors get highlighted ;)