From: Iain Patterson Date: Fri, 20 Jan 2012 11:32:29 +0000 (+0000) Subject: Use ^w-^ to switch to the last used window. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=0b4f8e336ddf05f77b2bb6b6eec9e82e4f5d6569;p=profile.git Use ^w-^ to switch to the last used window. For consistency with tmux, which uses ^ to switch to the last pane, which is in itself for consistency with vim using ^ to switch to the last buffer. Default vim action would be to split and edit the last buffer. That's sometimes useful but overall less useful than switching windows. --- diff --git a/.vimrc b/.vimrc index 3d83fbd..28d060e 100644 --- a/.vimrc +++ b/.vimrc @@ -75,6 +75,10 @@ inoremap " Swap jump keys. noremap ' ` noremap ` ' + +" Select previous widnow. +noremap ^ p +noremap p "}}}1 " Find stuff.