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
- Host: GitHub
- URL: https://github.com/tani/vim-psub
- Owner: tani
- Created: 2023-08-06T16:22:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-02T17:09:47.000Z (about 1 year ago)
- Last Synced: 2025-02-09T23:51:14.934Z (4 months ago)
- Language: Lua
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.pod
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