Permalink
Browse files

Added easier mappings for viewport switching

and viewport resizing (equal size for all
viewports)

Signed-off-by: Aman Gupta <aman@tmm1.net>
  • Loading branch information...
1 parent e5108f3 commit 02fef6a1a1f146758854e3d94679b4d1f78b9b60 @rudolfochrist rudolfochrist committed with tmm1 Feb 25, 2011
Showing with 14 additions and 0 deletions.
  1. +14 −0 gvimrc
View
14 gvimrc
@@ -45,6 +45,20 @@ if has("gui_macvim")
imap <D-8> <Esc>8gt
map <D-9> 9gt
imap <D-9> <Esc>9gt
+
+ " Command-Option-ArrowKey to switch viewports
+ map <D-M-Up> <C-w>k
+ imap <D-M-Up> <Esc> <C-w>k
+ map <D-M-Down> <C-w>j
+ imap <D-M-Down> <Esc> <C-w>j
+ map <D-M-Right> <C-w>l
+ imap <D-M-Right> <Esc> <C-w>l
+ map <D-M-Left> <C-w>h
+ imap <D-M-Left> <C-w>h
+
+ " Adjust viewports to the same size
+ map <Leader>= <C-w>=
+ imap <Leader>= <Esc> <C-w>=
endif
" Start without the toolbar

0 comments on commit 02fef6a

Please sign in to comment.