" Python Calculator command! -nargs=+ Calc :r! python -c "from math import *; print " " I frequently type :Q or :WQ, etc instead of :q, :wq command! WQA :wqa command! WqA :wqa command! WQa :wqa command! Wqa :wqa command! WA :wa command! Wa :wa command! WQ :wq command! Wq :wq command! W :w command! QA :wqa command! Qa :wqa " Unhighlight search results map :nohlsearch:redraw! " Map Y to be consistent with D, C, etc noremap Y y$ " CTRL-n and CTRL-p to go forwards and backwards through files nnoremap :next nnoremap :prev " CTRL-J/K to move up and down, collapsing open windows map j_ map k_ " Press CTRL-X after pasting something to fix up formatting imap u:set paste.:set nopastei " Spell checking mode toggle function s:spell() if !exists("s:spell_check") || s:spell_check == 0 echo "Spell check on" let s:spell_check = 1 setlocal spell spelllang=en_au else echo "Spell check off" let s:spell_check = 0 setlocal spell spelllang= endif endfunction map :call spell() imap :call spell()