set nocompatible source ~/.vim/ui.vim source ~/.vim/autocommands.vim source ~/.vim/bundles.vim " This helps with RVM etc set shell=zsh " For when you forget to sudo.. Really Write the file. cmap w!! w !sudo tee % >/dev/null " Send visual selection to gist.github.com " Requires gist (brew install gist) vnoremap G :w !gist -p -t %:e \| pbcopy " CTags map rt :!ctags --extra=+f -R * set tags=tmp/tags;/,./tmp/tags;/,tags;/,./tags;/ " ,w - write file nnoremap ,w :write set pastetoggle=p map p :set invpaste paste? " Theme development help nmap :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' \ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" \ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" " Quick editing of common dot-files map vv :edit $MYVIMRC map gg :edit $MYGVIMRC map .. :cd ~/.config:enew if filereadable(expand('~/.vimrc.local')) source ~/.vimrc.local endif