vim-resize


Ⅰ. 插件描述

Resizing the screen using arrow keys

Ⅱ. 基本信息

创建日期:  2013-11-18
使用用户:  20
Github星:  14
插件作者:  Benjamin Attal

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'breuckelen/vim-resize'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'breuckelen/vim-resize'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'breuckelen/vim-resize'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/breuckelen/vim-resize

Ⅳ. 文档说明

vim-resize

Are you a vim user? Don't know what to use the arrow keys for?

  • Download this plugin for smart window resizing using the arrow keys!

Usage

  • use the arrow keys in normal mode to resize a vertical or horizontal split in the desired direction

Configuration

Mappings

By default, this plugin uses these mappings:

nnoremap <silent> <c-left> :CmdResizeLeft<cr>
nnoremap <silent> <c-down> :CmdResizeDown<cr>
nnoremap <silent> <c-up> :CmdResizeUp<cr>
nnoremap <silent> <c-right> :CmdResizeRight<cr>

If you want to set your own mappings, copy this line into your vimrc:

let g:vim_resize_disable_auto_mappings = 1

and use the format above to customize them to your liking.

添加新评论