We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I wrote a tiny function utilizing WindowSwap to swap two adjacent windows with a single mapping:
function! WindowSwapInDirection(dir) call WindowSwap#MarkWindowSwap() exec 'wincmd ' . a:dir call WindowSwap#DoWindowSwap() endfunction noremap <silent> <M-S-h> :call WindowSwapInDirection('h')<cr> noremap <silent> <M-S-j> :call WindowSwapInDirection('j')<cr> noremap <silent> <M-S-k> :call WindowSwapInDirection('k')<cr> noremap <silent> <M-S-l> :call WindowSwapInDirection('l')<cr>
This is super useful and I think it would be a nice addition to the WindowSwap plugin itself.
I don't have time to submit a PR right now but I thought I'd leave the snippet here in case anyone wants to do the same.
The text was updated successfully, but these errors were encountered:
Exactly what I was looking for, thanks!
Sorry, something went wrong.
No branches or pull requests
I wrote a tiny function utilizing WindowSwap to swap two adjacent windows with a single mapping:
This is super useful and I think it would be a nice addition to the WindowSwap plugin itself.
I don't have time to submit a PR right now but I thought I'd leave the snippet here in case anyone wants to do the same.
The text was updated successfully, but these errors were encountered: