An open API service indexing awesome lists of open source software.

https://github.com/tani/vim-psub

Run subtitution in parallel
https://github.com/tani/vim-psub

Last synced: about 2 months ago
JSON representation

Run subtitution in parallel

Awesome Lists containing this project

README

        

---
name: psub
description: A vim plugin to substitute a pattern in parallel
---

=pod

=head1 vim-psub

A vim plugin to substitute a pattern in parallel.
The plugin is inspired by L.

=head1 PSub command X<:PSub>

This plugin provides one command C<:PSub> which is similar to C<:s> but
it expands a pattern in parallel. For example, if you want to swap two words
C and C in a line, you can use C<:PSub/foo{1,2}/foo{2,1}/g> to do.

The command C<:PSub> accepts the same arguments as C<:s> does. For
example, C<:PSub/foo/bar/g> is equivalent to C<:PSub/foo/bar/g>. The only
difference is that C<:PSub> expands a pattern in parallel by C<{}>.

The command C<:PSub> also accepts a range. For example, C<< :'<,'>PSub/foo/bar/g >>
is equivalent to C<< :'<,'>s/foo/bar/g >>.

=head1 License

Copyright (C) 2013 TANIGUCHI Masaya

This program is licensed under the L
=cut