Unmap the arrow keys, use Cmd-Arrow keys instead for window resize

This commit is contained in:
yan 2012-04-18 17:48:41 -07:00
parent 8ad2a7a7b1
commit ea007403ac
2 changed files with 5 additions and 5 deletions

View File

@ -333,7 +333,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
* `Ctrl-h,l,j,k` - to move left, right, down, up between windows
* `Q` - Intelligent Window Killer. Close window `wincmd c` if there are multiple windows to same buffer, or kill the buffer `bwipeout` if this is the last window into it.
* Arrow keys - resize windows (up/down for vertical, left=make smaller horizontally, right=make bigger horizontally)
* Cmd-Arrow keys - resize windows (up/down for vertical, left=make smaller horizontally, right=make bigger horizontally)
#### Splits

View File

@ -140,10 +140,10 @@ nnoremap <silent> vv <C-w>v
nnoremap <silent> ss <C-w>s
" Resize windows with arrow keys
nnoremap <Up> <C-w>+
nnoremap <Down> <C-w>-
nnoremap <Left> <C-w><
nnoremap <Right> <C-w>>
nnoremap <D-Up> <C-w>+
nnoremap <D-Down> <C-w>-
nnoremap <D-Left> <C-w><
nnoremap <D-Right> <C-w>>
" create <%= foo %> erb tags using Ctrl-k in edit mode
imap <silent> <C-K> <%= %><Esc>3hi