My designer-inspired Vim config. It includes:
- Sass, LESS, Stylus, Nunjucks and Handlebars syntax highlighting
- Nerd-tree use
CTRL-K, CTRL-N
to open CTRL-P
to fuzzy find files a-laCMD-T
in Sublime- 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
- Now Neo Vim compatible (not fully tested actually so not really). Please note
that
vi
/vim
are aliased tonvim
- NeoVim
brew install neovim
- Ack
brew install ack
- Ag
brew install ag
- Fzf
brew install fzf
- 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 ~/Development/vim-settings/.vim ~/.vim
andln -s ~/Development/vim-settings/.vimrc ~/.vimrc
respectively. Please note that this depends on what folder you cloned the repo to. - Symlink
init.vim
to./config/nvim/init.vim
like this:ln -s ~/Development/vim-settings/init.vim ~/.config/nvim/init.vim
- Repeat steps 3 and 4 for the
.bash_profile
file if you so wish to use that one. - Repeat steps 3 and 4 for the
.ackrc
file if you so wish to use Ack for file searching. - 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 Chris Silivestru and Brent Lintner for the help.