mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-12 17:55:41 +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)
|
\ , 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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user