set nocompatible let mapleader = "\" source ~/.vim/bundles.vim source ~/.vim/ui.vim source ~/.vim/autocommands.vim source ~/.vim/ruby.vim set backupdir=~/.vim/dirs/backups " store file backups here set backupskip=/tmp/*,/private/tmp/*" " don't use backups for tmp files set directory=~/.vim/dirs/swaps " store swap files here set undofile " persistent undos set undodir=~/.vim/dirs/undos " where to store undo histories " For when you forget to sudo.. Really Write the file. cmap w!! w !sudo tee % >/dev/null " CTags map rt :!ctags --extra=+f -R * set tags=tmp/tags;/,./tmp/tags;/,tags;/,./tags;/ set pastetoggle=p map p :set invpaste paste? " 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 map :Files