Ⅰ. 插件描述
Toggle zoom in / out individual windows (splits)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'dhruvasagar/vim-zoom'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'dhruvasagar/vim-zoom'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'dhruvasagar/vim-zoom'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/dhruvasagar/vim-zoom
Ⅳ. 文档说明
# VIM Zoom v0.3.1
A simple plugin to toggle zoom of current window within the current tab.
This is heavily inspired from tmux's zoom pane feature.
Installation
Use your favorite plugin manager to install this plugin (recommended).
pathogen.vim
git clone https://github.com/dhruvasagar/vim-zoom.git ~/.vim/bundle/vim-zoomIf however you don't use a plugin manager such as pathogen, vundle, neobundle,
vim-plug then you can copy all files within this repository directly within
your ~/.vim folder. (not recommended)
Usage
Simply use the provided mapping <C-W>m to toggle zoom in and out
for the current window
Statusline
VIM Zoom provides zoom#statusline() API to be used for addingg:zoom#statustext value to your statusline while your window is zoomed.g:zoom#statustext defaults to value 'status'. You may add this to your
statusline like this :
set statusline+=%{zoom#statusline()}
If you're using some complex statusline plugin, you may need to refer to it's
documentation to figure out how to add this to your statusline.
Contributing
Reporting an Issue :
Contributing to code :
- Fork it.
- Commit your changes and give your commit message some love.
- Push to your fork on github.
- Open a Pull Request.
Credits
This plugin was heavily inspired by tmux's zoom pane feature.