diff --git a/.vimrc b/.vimrc index 4b3c357..fb9a84c 100644 --- a/.vimrc +++ b/.vimrc @@ -143,10 +143,15 @@ if !exists(":W") command W :w endif +command Cdf :cd %:p:h + " Save a vim session! Useful if you want to save buffer states and so on command SaveSession :mksession! ~/.vim_last_session command LoadSession :source ~/.vim_last_session +let g:CommandTMaxFiles = 1000 +let g:CommandTMaxDepth = 7 + " This is a quick way to edit a persistent scratch buffer for me... command ScratchOpen :e scp://barak@barakmich.com//home/barak/notes/scratch " Sudo-make-me-a-sandwich write @@ -216,6 +221,8 @@ augroup END nnoremap qf :QFix nnoremap aw :AckWord nnoremap ac :Ack +nnoremap hh :A +nnoremap j " Googley things....