Skip to content
Browse files

vim window management shortcuts

  • Loading branch information...
1 parent 45afcbd commit a3f886a5cb3abf3d79e41f2d7699aadecb789468 @thommahoney committed
Showing with 8 additions and 4 deletions.
  1. +8 −4 vim/vimrc
12 vim/vimrc
@@ -99,9 +99,14 @@ set guioptions-=T
set guioptions-=r
set guioptions-=L
-" Movement
-nnoremap <C-j> 25j
-nnoremap <C-k> 25k
+" window management
+nnoremap <C-h> <C-w>h
+nnoremap <C-j> <C-w>j
+nnoremap <C-k> <C-w>k
+nnoremap <C-l> <C-w>l
+nnoremap <C-s> <C-w>s
+nnoremap <C-n> <C-w>n
+nnoremap <C-q> <C-w>q
" grep
map <leader>a :Ack<space>
@@ -115,7 +120,6 @@ let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$'
map <leader>f :CtrlP<CR>
map <leader>cf :CtrlPClearCache<CR>
" fuckups
cnoreabbrev <expr> W ((getcmdtype() is# ':' && getcmdline() is# 'W')?('w'):('W'))
cnoreabbrev <expr> Wa ((getcmdtype() is# ':' && getcmdline() is# 'Wa')?('wa'):('Wa'))

0 comments on commit a3f886a

Please sign in to comment.
Something went wrong with that request. Please try again.