Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 02fef6a1a1f146758854e3d94679b4d1f78b9b60 1 parent e5108f3
Sebastian Christ rudolfochrist authored tmm1 committed
Showing with 14 additions and 0 deletions.
  1. +14 −0 gvimrc
14 gvimrc
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.