Ⅰ. 插件描述
Selecting different ranges of linesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/multipleranges-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/multipleranges-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/multipleranges-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/multipleRanges.vim
Ⅳ. 文档说明
This script lets you choose multiple non-consecutive ranges and then execute commands on them all at the same time. Just visually select a range of lines and hit the mapping sequence. Repeat until all the ranges have been selected (they will be highlighted). Then, execute the script-defined command Rangecommand with the actual command (and arguments) as arguments to Rangecommand and it'll do it. The ranges will remain selected until you execute the reset mapping allowing you to execute more commands on the ranges.
NOTE: VERSION 1.2 AND ABOVE DEPEND ON MY getVar.vim vimscript#353 AND variableSort.vim vimscript#354. Sorry I neglected to mention that before.
Version 1.8: No new functionality; brought the plugin up to Vim version 7.2, using Lists and removing the dependence on variableSort.vim (getVar.vim is still required).