wesQ3/vim-windowswap
关于
交换窗口,同时保持原有布局不变
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文WindowSwap.vim
Swap windows without ruining your layout!

Vim's window movement commands work fine when you only have a few splits open or want to push a window over to an edge. But what happens when you have a complicated layout and you just want to swap a couple arbitrary windows?
When I was just getting started with Vim, I asked about this problem on StackOverflow and I've received a handful of responses over the years. Almost a year after after I asked, sgriffin came through with a solution. Now that I'm a little less of a newbie, I've put his idea in a handy plugin.
HowTo
- Navigate to the window you'd like to move
- Press
<leader>ww - Navigate to the window you'd like to swap with
- Press
<leader>wwagain
Key Bindings
Defaults:
- Yank and paste a window with
<leader>ww(for me that's,ww)
Deprecated defaults:
- [y]ank a [w]indow with
<leader>yw - [p]aste that [w]indow with
<leader>pw.
These mappings are deprecated. See below for instructions on how to keep them working once they are removed from the default list.
Customize the commands to your liking by dropping this in your .vimrc and changing the mappings:
let g:windowswap_map_keys = 0 "prevent default bindings
nnoremap <silent> <leader>yw :call WindowSwap#MarkWindowSwap()<CR>
nnoremap <silent> <leader>pw :call WindowSwap#DoWindowSwap()<CR>
nnoremap <silent> <leader>ww :call WindowSwap#EasyWindowSwap()<CR>
Installation
This plugin follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers:
探索相关项目
加载中…