1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 04:40:06 +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)
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',
\ [
\ '[SPC w M] is to swap window',