From d4cab1f4bf517443041deb105bc378367a07e180 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Fri, 11 May 2018 19:51:02 +0800 Subject: [PATCH] Fix key bindings Tab --- autoload/SpaceVim.vim | 4 ++++ autoload/SpaceVim/default.vim | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index dbdf21f93..c829405aa 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -566,6 +566,10 @@ command -nargs=1 LeaderGuide call SpaceVim#mapping#guide#start_by_prefix('0', ) function! SpaceVim#end() abort + if g:spacevim_vimcompatible != 1 + call SpaceVim#mapping#def('nnoremap ', '', ':wincmd w', 'Switch to next window or tab','wincmd w') + call SpaceVim#mapping#def('nnoremap ', '', ':wincmd p', 'Switch to previous window or tab','wincmd p') + endif if g:spacevim_vimcompatible == 1 let g:spacevim_windows_leader = '' let g:spacevim_windows_smartclose = 0 diff --git a/autoload/SpaceVim/default.vim b/autoload/SpaceVim/default.vim index 7302b220e..28cde8f3d 100644 --- a/autoload/SpaceVim/default.vim +++ b/autoload/SpaceVim/default.vim @@ -311,8 +311,6 @@ function! SpaceVim#default#keyBindings() abort call SpaceVim#mapping#def('nnoremap ', '', ':call zvim#util#CopyToClipboard()', \ 'Copy buffer absolute path to X11 clipboard','call zvim#util#CopyToClipboard()') - call SpaceVim#mapping#def('nnoremap ', '', ':wincmd w', 'Switch to next window or tab','wincmd w') - call SpaceVim#mapping#def('nnoremap ', '', ':wincmd p', 'Switch to previous window or tab','wincmd p') endfunction fu! s:tobur(num) abort