Vim Revision as of Sunday, 20 December 2015 at 19:57 UTC
Tricks
- Reload
.vimrc
without restarting
vim:
:so ~/.vimrc
:so $MYVIMRC
:so %
: The last command is for when you’re editing it.
Package management
Pathogen seem slike a
Color Schemes
Installation
As an example, I’ll install the Base16
Eighties theme.
mkdir ~/.vim/colors
curl https://raw.githubusercontent.com/chriskempson/base16-vim/master/colors/base16-eighties.vim > ~/.vim/colors/base16-eighties.vim
Fire up vim, then :colorscheme base16-eighties
(tab-completion works!)
and voila. Add your favorite to ~/.vimrc
Finding Themes
- Vivify is a nice GUI.
Villustrator is another. - Base16: themes and
preview. You can also make
your own.
vim-airline
Add this to ~/.vimrc
to see the airline bar.
set laststatus=2