Re: make substitution on a copy (kindof) of matching lines

2014-10-08 Thread BPJ
Den 2014-10-02 16:33, Tim Chase skrev: On 2014-10-02 16:17, BPJ wrote: The other day I felt the need for a command/function which did a :substitute on a *copy* of each line matching its search pattern and inserted that copy below the original, unmodified line. I soon realized that it would

Re: make substitution on a copy (kindof) of matching lines

2014-10-08 Thread Jürgen Krämer
Hi, BPJ schrieb am 08.10.2014 um 16:00: Den 2014-10-02 16:33, Tim Chase skrev: On 2014-10-02 16:17, BPJ wrote: The other day I felt the need for a command/function which did a :substitute on a *copy* of each line matching its search pattern and inserted that copy below the original,

Re: make substitution on a copy (kindof) of matching lines

2014-10-08 Thread BPJ
Den 2014-10-08 16:13, Jürgen Krämer skrev: Hi, BPJ schrieb am 08.10.2014 um 16:00: Den 2014-10-02 16:33, Tim Chase skrev: On 2014-10-02 16:17, BPJ wrote: The other day I felt the need for a command/function which did a :substitute on a *copy* of each line matching its search pattern and

make substitution on a copy (kindof) of matching lines

2014-10-02 Thread BPJ
Hi Vimmers, The other day I felt the need for a command/function which did a :substitute on a *copy* of each line matching its search pattern and inserted that copy below the original, unmodified line. I soon realized that it would be much easier to first make a copy of each (unmodified)

Re: make substitution on a copy (kindof) of matching lines

2014-10-02 Thread Tim Chase
On 2014-10-02 16:17, BPJ wrote: The other day I felt the need for a command/function which did a :substitute on a *copy* of each line matching its search pattern and inserted that copy below the original, unmodified line. I soon realized that it would be much easier to first make a copy of