]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Add mapping to make last active window the only one.
authorSimon Ruderich <simon@ruderich.org>
Sat, 14 Nov 2009 13:37:56 +0000 (14:37 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 14 Nov 2009 13:37:56 +0000 (14:37 +0100)
vimrc

diff --git a/vimrc b/vimrc
index d8ed984233f9de16aaf0887b812b588e88cca3ba..fbf5a87cfb4e8f16e589b832493ff7e82ede6979 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -141,6 +141,9 @@ nnoremap <Leader>8 :8b<CR>
 nnoremap <Leader>9 :9b<CR>
 nnoremap <Leader>0 :10b<CR>
 
+" Make last active window the only window. Similar to <C-w> o.
+nnoremap <C-w>O <C-w>p<C-w>o
+
 " Maps to change spell language between English and German and disable spell
 " checking.
 if v:version >= 700