Commit 1533acc0 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Switch vim Ctrl-* and Alt-* mappings for buffer navigation

Buffer navigation is now done with Ctrl-{h,j,k,l} to match the toggle
buffer mapping Ctrl-^.

Window navigation is therefore now Alt-{h,j,k,l}
parent 8beb5e26
Loading
Loading
Loading
Loading
+24 −24
Original line number Diff line number Diff line
@@ -22,31 +22,31 @@ set exrc
set splitbelow
set splitright
set switchbuf=usetab,split
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
noremap <A-h> gT
noremap <silent> <A-j> :CtrlSpaceGoDown<CR>
noremap <silent> <A-k> :CtrlSpaceGoUp<CR>
noremap <A-l> gt
noremap! <C-h> <Esc><C-w>h
noremap! <C-j> <Esc><C-w>j
noremap! <C-k> <Esc><C-w>k
noremap! <C-l> <Esc><C-w>l
noremap! <A-h> <Esc>gT
noremap! <silent> <A-j> <Esc>:CtrlSpaceGoDown<CR>
noremap! <silent> <A-k> <Esc>:CtrlSpaceGoUp<CR>
noremap! <A-l> <Esc>gt
noremap <A-h> <C-w>h
noremap <A-j> <C-w>j
noremap <A-k> <C-w>k
noremap <A-l> <C-w>l
noremap <C-h> gT
noremap <silent> <C-j> :CtrlSpaceGoDown<CR>
noremap <silent> <C-k> :CtrlSpaceGoUp<CR>
noremap <C-l> gt
noremap! <A-h> <Esc><C-w>h
noremap! <A-j> <Esc><C-w>j
noremap! <A-k> <Esc><C-w>k
noremap! <A-l> <Esc><C-w>l
noremap! <C-h> <Esc>gT
noremap! <silent> <C-j> <Esc>:CtrlSpaceGoDown<CR>
noremap! <silent> <C-k> <Esc>:CtrlSpaceGoUp<CR>
noremap! <C-l> <Esc>gt
if exists(':tnoremap')
	tnoremap <C-h> <C-\><C-n><C-w>h
	tnoremap <C-j> <C-\><C-n><C-w>j
	tnoremap <C-k> <C-\><C-n><C-w>k
	tnoremap <C-l> <C-\><C-n><C-w>l
	tnoremap <A-h> <C-\><C-n>gT
	tnoremap <A-j> <C-\><C-n>:CtrlSpaceGoDown<CR>
	tnoremap <A-k> <C-\><C-n>:CtrlSpaceGoUp<CR>
	tnoremap <A-l> <C-\><C-n>gt
	tnoremap <A-h> <C-\><C-n><C-w>h
	tnoremap <A-j> <C-\><C-n><C-w>j
	tnoremap <A-k> <C-\><C-n><C-w>k
	tnoremap <A-l> <C-\><C-n><C-w>l
	tnoremap <C-h> <C-\><C-n>gT
	tnoremap <C-j> <C-\><C-n>:CtrlSpaceGoDown<CR>
	tnoremap <C-k> <C-\><C-n>:CtrlSpaceGoUp<CR>
	tnoremap <C-l> <C-\><C-n>gt
	tnoremap <Leader><Esc> <C-\><C-n>
endif