vim-enmasse


Ⅰ. 插件描述

Edit every line in a quickfix list at the same time

Ⅱ. 基本信息

创建日期:  2014-04-12
使用用户:  26
Github星:  171
插件作者:  Oliver Caldwell

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# En Masse Build Status

Join the chat at https://gitter.im/Wolfy87/vim-enmasse

Takes a quickfix list and makes it editable. You can then write each change back to their respective files using your favourite way of writing files, :w or ZZ, for example. Fix multiple [JSHint][] issues at once or perform a complex find and replace across your project all within the comfort of Vim.

Animated demonstration

Using the plugin

As you can see in the demonstration above, all you have to do is populate a quickfix list in some way (I used [JSHint][], but you could use [Ag][], for example), then execute :EnMasse. This will open a new buffer with each line corresponding to a line in the quickfix list.

You can then edit each line in any way you want. When done just write this magical buffer and it will update each line in their corresponding files. For more information, check out the documentation!

Installation

vim-plug

add this line to .vimrc

Plug 'Olical/vim-enmasse'

vim-pathogen

cd ~/.vim/bundle
git clone https://github.com/Olical/vim-enmasse

Vundle.vim

add this line to .vimrc

Plugin 'Olical/vim-enmasse'

Tests

Tests are performed using [vader][], to pull the dependencies and run them simply execute ./tests/run. The tests are automatically executed by TravisCI too, so keep an eye on that if you push changes or open a PR. The badge up the top of this README indicates the state of master, it should ALWAYS be green. A test should be written before any change is made.

Author

Oliver Caldwell (@OliverCaldwell)

Unlicenced

Find the full [unlicense][] in the UNLICENSE file, but here's a snippet.

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

Do what you want. Learn as much as you can. Unlicense more software.

添加新评论