My designer-inspired Vim config. It includes:
- LESS, Stylus, Nunjucks and Handlebars syntax highlighting
- Nerd-tree with a familiar
CTRL-K, CTRL-B
trigger for Sublime users! CTRL-P
to fuzzy find files a-laCMD-T
in Sublime- A not horrific colorscheme that is similar enough to the Sublime Monokai theme
- Pathogen for easy Vim plugin additions
- A simple
.bash_profile
that highlights the current branch of a git repo - Turns on spellcheck and wordwrap (YES, WORDWRAP, DEAL WITH IT) on MarkDown files
- Easy buffer switching with
Shift-h
andShift-l
- Close all buffers but current with
\-x
- Fast write buffer with
\-w
- Autocomplete for your CSS
jj
mapped toESC
when INSERT mode to save your finger from having to reach all the way to theESC
key- Airline task bar which shows your current branch, your mode, filetype and more
- Clone this repo into a folder of your choosing, say
~/vim-settings
- Upon successful clone, run
git submodule update --init
to initialize all the plugins loaded as submodules - Delete or backup or whatever your existing
.vim
folder and.vimrc
file if exists - Symlink
.vim
and.vimrc
in your user root directory like this:ln -s ~/vim-settings/.vim ~/.vim
andln -s ~/vim-settings/.vimrc ~/.vimrc
respectively. Please note that this depends on what folder you cloned the repo to. - Repeat steps 3 and 4 for the
.bash_profile
file if you so wish to use that one. - Airline is included which adds a handy info bar to Vim. It uses some fancy fonts to work well - get them here. My preference here is Monaco. Set your Terminal program to use that font for Airline to render properly.
- Want git branch auto-completion? Grab the bash script here and save it as
.git-completion.bash
in your user root folder (~/
) and the included.bash_profile
will pick it up.
With Pathogen its easy to add Vim plugins. Just go to the .vim/bundle
folder and run git submodule add <git-repo-address>
and voila.
Why do this? Because you get mad respect from devs and you drive other designers mad. Good enough for me!
Nothing helps more than a good cheat-sheet.
Nods to @CSilivestru and @brentlintner for the help.