From 73f5ca5d9e6e759137d06ff2fe8c1a1954debe3b Mon Sep 17 00:00:00 2001 From: michener Date: Wed, 10 Nov 2010 20:13:19 +0000 Subject: [PATCH] Add some subtle bindings git-svn-id: http://photonzero.com/dotfiles/trunk@75 23f722f6-122a-0410-8cef-c75bd312dd78 --- .vimrc | 7 +++++++ 1 file changed, 7 insertions(+) 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....