Ⅰ. 插件描述
Move your gVimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tyru/winmove'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tyru/winmove'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tyru/winmove'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tyru/winmove.vim
Ⅳ. 文档说明
Usage:
MAPPING:
<Up> move your gVim up.
<Right> move your gVim right.
<Down> move your gVim down.
<Left> move your gVim left.
GLOBAL VARIABLES:
g:wm_move_up (default:'<Up>')
if empty string, no mapping is defined.
g:wm_move_right (default:'<Right>')
if empty string, no mapping is defined.
g:wm_move_down (default:'<Down>')
if empty string, no mapping is defined.
g:wm_move_left (default:'<Left>')
if empty string, no mapping is defined.
g:wm_move_x (default:20)
gVim use this when move left or right.
g:wm_move_y (default:15)
gVim use this when move up or down.