Permalink
Browse files

^j/^k: scroll split windows. ^h/^l: scroll tabs.

  • Loading branch information...
1 parent 7c89e13 commit 63ce213a5ffc2739633390f51910479fa6040891 @jordanlewis jordanlewis committed Oct 3, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 vimrc
View
@@ -111,6 +111,14 @@ map <F12> :set number!<CR>
nnoremap <C-N> :bn<Enter>
nnoremap <C-P> :bp<Enter>
+" Make ctrl-j and ctrl-k cycle through split windows in cmd mode
+nnoremap <C-J> :wincmd w<Enter>
+nnoremap <C-K> :wincmd W<Enter>
+
+" Make ctrl-h and ctrl-l cycle through tab pages in cmd mode
+nnoremap <C-H> :tabp<Enter>
+nnoremap <C-L> :tabn<Enter>
+
" :w!! sudo-saves the current buffer
cmap w!! w !sudo tee % >/dev/null

0 comments on commit 63ce213

Please sign in to comment.