Skip to content

Commit

Permalink
CTRL + h/j/k/l for window motion
Browse files Browse the repository at this point in the history
  • Loading branch information
dorkitude committed Jul 27, 2011
1 parent 326f2d4 commit 49cc7f0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
12 changes: 8 additions & 4 deletions .vimrc
Expand Up @@ -60,10 +60,10 @@ set selectmode=""


" this gives me convenient key mappings for window movement
noremap <silent> ,h :wincmd h<CR>
noremap <silent> ,j :wincmd j<CR>
noremap <silent> ,k :wincmd k<CR>
noremap <silent> ,l :wincmd l<CR>
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
" a quick way to bring up Ack
noremap <silent> ,a :Ack --follow
Expand All @@ -89,3 +89,7 @@ if has("gui_running")
set guioptions=egmrt
endif

"give me that nice little gutter so i don't make stuff too wide
"set formatoptions=qrn1
"set colorcolumn=80

10 changes: 5 additions & 5 deletions README.markdown
Expand Up @@ -72,12 +72,12 @@ While I've used git via the command line for years, I now rarely leave Vim to pe

**Window Movement**

I stole Derek Wyatt's window-motion bindings, which lets you do this to move control windows:
My window motion bindings allow you to do this to move control windows:

- `,h` move control to the window to the left
- `,j` = move control to the window below
- `,k` = move control to the window above
- `,l` = move control to the window to the right
- `CTRL+h` move control to the window to the left
- `CTRL+j` = move control to the window below
- `CTRL+k` = move control to the window above
- `CTRL+l` = move control to the window to the right

(Normally, these would be `^w h` `^w j` etc)

Expand Down

0 comments on commit 49cc7f0

Please sign in to comment.