diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-10-25 11:34:10 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-10-25 11:34:10 +0200 |
commit | 51274f7b6bb5df9b8f3703fd528a25575330957f (patch) | |
tree | 67df1df94fb387baba371a8da072511ee244e757 | |
parent | d02b5cb2fcf7173059fb4517fabe61617543c3a3 (diff) | |
download | dotfiles-51274f7b6bb5df9b8f3703fd528a25575330957f.tar.gz dotfiles-51274f7b6bb5df9b8f3703fd528a25575330957f.tar.xz |
vimrc: keybindings for splits
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | .vimrc | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -44,6 +44,9 @@ if exists("+undofile") set undodir+=. endif +set splitbelow +set splitright + set wildmenu set wildmode=full set wildignore=*.o,*.a,*.class,*.mo,*.la,*.swp,*.jpg,*.png,*.xpm,*.gif,*.pyc,*~,.git,.svn,.hg, @@ -122,10 +125,22 @@ inoremap <C-c> <esc>:q<cr> nnoremap <C-c> :q<cr> " movement mappings -nnoremap <C-Right> <C-w>l -nnoremap <C-Left> <C-w>h -nnoremap <C-Down> <C-w>j -nnoremap <C-Up> <C-w>k +nnoremap <silent> <C-Right> <c-w>l +nnoremap <silent> <C-Left> <c-w>h +nnoremap <silent> <C-Up> <c-w>k +nnoremap <silent> <C-Down> <c-w>j +set <C-Right>=[C +set <C-Left>=[D +" unsupported options +"set <C-Up>=[A +"set <C-Down>=[B +nnoremap <silent> <C-W>[A <c-w>K +nnoremap <silent> <C-W>[B <c-w>J +nnoremap <silent> <C-W><C-Right> <c-w>L +nnoremap <silent> <C-W><C-Left> <c-w>H +nnoremap <silent> <C-W><C-Up> <c-w>K +nnoremap <silent> <C-W><C-Down> <c-w>J + nnoremap <Up> gk nnoremap <Down> gj nnoremap j gj |