sohooo's VIM config
This setup is based on various sources all around github. Huge credits go to these projects:
- fully portable; place this
vimrcanywhere you want
- conditional loading of plugins/language features with
- distraction-free writing mode
- Put this repo in a place you like:
git clone http://github.com/sohooo/dotvim.git ~/.dotvim
- Iinstall NeoBundle:
mkdir -p ~/.dotvim/bundle && git clone https://github.com/Shougo/neobundle.vim ~/.dotvim/bundle/neobundle.vim
- Create an alias to use your Vim installation:
alias v='mvim -u ~/.dotvim/vimrc'; this way, we don't interfere with the system Vim installation.
- Start Vim and type
:NeoBundleInstallto install the (missing) plugins defined in
Here's a list of some useful keyboard bindings:
svim-sneak; like 'f', but multiple lines
,ffind file w/ Unite
,bchoose buffer w/ Unite
,ggrep in current path w/ Unite
,vtoggle GoldenView autoresizing (enabled on start)
,wtoggle distraction-free writing
gcctoggle comment on/off
jjremap von ESC; this rox!
ctrl-p | ctrl-ncycle through elements
<c-t>open in tab
<c-v>open in vertical split
<c-h>open in horizontal split
:Gstatustoggle files with
For an even prettier status bar, use one of the patched fonts from the Powerline wiki.
Distraction-free writing a la iAWriter is supported via a plugin from LakTEK. Toggle the view with
F4, and don't forget to disable the OSX native fullscreen view:
defaults write org.vim.MacVim MMNativeFullScreen 0
You also need the Cousine Font from Google as a free alternative to Nitti Light.