summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-10-25 11:34:10 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-10-25 11:34:10 +0200
commit51274f7b6bb5df9b8f3703fd528a25575330957f (patch)
tree67df1df94fb387baba371a8da072511ee244e757
parentd02b5cb2fcf7173059fb4517fabe61617543c3a3 (diff)
downloaddotfiles-51274f7b6bb5df9b8f3703fd528a25575330957f.tar.gz
dotfiles-51274f7b6bb5df9b8f3703fd528a25575330957f.tar.xz
vimrc: keybindings for splits
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--.vimrc23
1 files changed, 19 insertions, 4 deletions
diff --git a/.vimrc b/.vimrc
index eeeebed..bf4036f 100644
--- a/.vimrc
+++ b/.vimrc
@@ -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>=
+set <C-Left>=
+" unsupported options
+"set <C-Up>=
+"set <C-Down>=
+nnoremap <silent> <C-W> <c-w>K
+nnoremap <silent> <C-W> <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