vim-win
vim-win copied to clipboard
A Vim plugin for managing windows.
vim-win
vim-win is a Vim plugin for managing windows. Built-in functionality includes
window selection, window buffer swapping, and window resizing. The plugin is
extensible, allowing additional functionality to be added (see Configuration
below).
Requirements
- Full functionality
vim>=8.2.4052ornvim>=0.7.0
Installation
A package manager can be used to install vim-win.
Examples
- Vim8 packages:
git clone https://github.com/dstein64/vim-win ~/.vim/pack/plugins/start/vim-win
- Vundle:
- Add
Plugin 'dstein64/vim-win'to~/.vimrc :PluginInstallor$ vim +PluginInstall +qall
- Add
- Pathogen:
git clone --depth=1 https://github.com/dstein64/vim-win ~/.vim/bundle/vim-win
- vim-plug:
- Add
Plug 'dstein64/vim-win'to~/.vimrc :PlugInstallor$ vim +PlugInstall +qall
- Add
- dein.vim:
- Add
call dein#add('dstein64/vim-win')to~/.vimrc :call dein#install()
- Add
- NeoBundle:
- Add
NeoBundle 'dstein64/vim-win'to~/.vimrc - Re-open vim or execute
:source ~/.vimrc
- Add
Usage
Enter vim-win with <leader>w or :Win.
- Arrows or
hjklkeys are used for movement. - Change windows with movement keys or numbers.
- Hold
<shift>and use movement keys to resize the active window. - Press
sorSfollowed by a movement key or window number, to swap buffers. - Press
?to show a help message. - Press
<esc>to leavevim-win.
See :help win-usage for additional details.
Documentation
:help vim-win
The underlying markup is in win.txt.
Demo
License
The source code has an MIT License.
See LICENSE.