Permalink
Browse files

Add mappings for split window management.

  • Loading branch information...
1 parent fd447c7 commit a747cf9e3cb1b5d4d73922b6f57bfd304dc13b4a @sharnik committed Mar 20, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 vimrc
View
@@ -138,6 +138,15 @@ noremap <silent><Leader>/ :nohls<CR>
" better ESC
inoremap jk <Esc>
+" Splits ,v and ,h to open new splits (vertical and horizontal)
+nnoremap <leader>v <C-w>v<C->l
+nnoremap <leader>d <C-w>s<C-w>j
+" Move between splits
+nnoremap <C-h> <C-w>h
+nnoremap <C-j> <C-w>j
+nnoremap <C-k> <C-w>k
+nnoremap <C-l> <C-w>l
+
nmap <silent> <leader>h :set invhlsearch<CR>
nmap <silent> <leader>l :set invlist<CR>
nmap <silent> <leader>n :set invnumber<CR>

0 comments on commit a747cf9

Please sign in to comment.