Skip to content

Commit

Permalink
Add mappings for split window management.
Browse files Browse the repository at this point in the history
  • Loading branch information
sharnik committed Mar 20, 2012
1 parent fd447c7 commit a747cf9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vimrc
Expand Up @@ -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>
Expand Down

0 comments on commit a747cf9

Please sign in to comment.