A short one on how to install a plugin in Vim.
Vundle. More details here.
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
.vimrc file and add these lines:
set nocompatible filetype off " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim' " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required
This is how I install Vim plugins:
- Go to a plugin that says you can install using
- For instance. This plugin auto saves when you are editing a file: auto-save.
- The Github project should have a directory called
- Add the
user/projectfrom Github to your
.vimrcfile. In the
auto-saveexample. The user is
907thand the project is
vim-auto-save. I will add this line to my
Plugin 907th/vim-auto-savebefore a specific line as noted above.
vimrc. Source it with
- List all
Vundleplugins. Still inside Vim:
:PluginList. Make sure the Plugin is listed. You can do
:qto exit this view.
- Inside Vim:
:PluginInstall. This will install recently added Plugins.
auto-save had a few more lines that had to be added. Depending on the
Plugin readme page, please follow those specific instructions.
auto-save. You need to add these lines to the
let g:auto_save = 1 let g:auto_save_in_insert_mode = 0
Here is a list of