

GitHub - Olical/vim-enmasse: Edit every line in a quickfix list at the same time
source link: https://github.com/Olical/vim-enmasse
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

En Masse
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.
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.
Recommend
-
144
README.md You've wo...
-
139
vim-ripgrep :Rg <string|pattern> Word under cursor will be searched if no argument is passed to Rg configuration Setting Default
-
142
vim-qf vim-qf—short for vim-quickfix—is a growing collection of settings, commands and mappings put together to make working with the location list/window and the quickfix list/window smoother. F...
-
171
asyncrun.vim - Run Async Shell Commands in Vim 8.0 / NeoVim and Output to Quickfix Window
-
50
A little bit of vimscript never hurt anybody. If you know what I mean.
-
69
README.md ListToggle A simple vim plugin for toggling the display of the quickfix list and the location-list. Install it with
-
35
README.md vim-qlist Vim-qlist is an updated, more powerful, version of the function discussed in
-
7
vim-qf-preview A plugin for the quickfix and location list window to quickly preview the file with the quickfix item under the cursor in a popup window. Requirements Vim >= 8.1.2250 Usage...
-
10
QuickfixFormatter Easily integrate the vim quickfix list with your failing rspec tests. Just add this gem, set it as one of your formatters (--format QuickfixFormatter) Installation Install the gem and add to...
-
8
Quickfix AI (Alpha Release) Two powerful AI-powered extensions to simplify your browsing and coding experience. Introduction
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK