1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

Improve window swapping (#3192)

This commit is contained in:
Jethro Cao 2019-10-26 22:20:45 +08:00 committed by Wang Shidong
parent f1a44f5b33
commit 69caebdeb1

View File

@ -197,7 +197,8 @@ function! SpaceVim#mapping#space#init() abort
\ ] \ ]
\ , 1) \ , 1)
let s:lnum = expand('<slnum>') + s:funcbeginline let s:lnum = expand('<slnum>') + s:funcbeginline
call SpaceVim#mapping#space#def('nnoremap', ['w', 'M'], 'ChooseWinSwap', call SpaceVim#mapping#space#def('nnoremap', ['w', 'M'],
\ "execute eval(\"winnr('$')<=2 ? 'wincmd x' : 'ChooseWinSwap'\")",
\ ['swap window', \ ['swap window',
\ [ \ [
\ '[SPC w M] is to swap window', \ '[SPC w M] is to swap window',