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:
parent
f1a44f5b33
commit
69caebdeb1
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user