Ⅰ. 插件描述
Damian Conway's dragvisuals plugin for vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'joshukraine/dragvisuals-holy-ground'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'joshukraine/dragvisuals-holy-ground'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'joshukraine/dragvisuals-holy-ground'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/joshukraine/dragvisuals
Ⅳ. 文档说明
# dragvisuals.vim
This is an exact copy of Damian Conway's dragvisuals.vim. I am storing it in my own repo so that I can manage its installation with Vundle.
Usage
The following installation instructions been modified to use Vundle's directory sturcture for plugins.
Add the following (uncommented) to your .vimrc...
" Key mappings for dragvisuals.vim
runtime bundle/dragvisuals/plugins/dragvisuals.vim
vmap <expr> <LEFT> DVB_Drag('left')
vmap <expr> <RIGHT> DVB_Drag('right')
vmap <expr> <DOWN> DVB_Drag('down')
vmap <expr> <UP> DVB_Drag('up')
vmap <expr> D DVB_Duplicate()
" Remove any introduced trailing whitespace after moving...
let g:DVB_TrimWS = 1