Re: Applying macros to all files, macro stops processing files

2020-09-03 Thread russurquhart1 via vim_use
Wanted to thank Tim for this. This saved my bacon!!! Thanks for the help! Russ -Original Message- From: russurquhart1 via vim_use To: vim_use@googlegroups.com Sent: Wed, Sep 2, 2020 7:59 pm Subject: Re: Applying macros to all files, macro stops processing files -Original

Re: Applying macros to all files, macro stops processing files

2020-09-02 Thread russurquhart1 via vim_use
-Original Message- From: Tim Chase To: russurquhart1 via vim_use Sent: Wed, Sep 2, 2020 7:18 pm Subject: Re: Applying macros to all files, macro stops processing files In theory, this should do it   :set hidden   :argdo 1/---/-2put='beta: true' (this assumes that the first

Re: Applying macros to all files, macro stops processing files

2020-09-02 Thread Tim Chase
On 2020-09-02 23:23, russurquhart1 via vim_use wrote: > Yesterday, with the groups help, I was able to apply a macro to a > group of Markdown files in my site directory, using: :args > ~/site/**/inde*.md :argdo :normal @b > :argdo :write > (@b is a macro that searches for '---', moves up two

Applying macros to all files, macro stops processing files

2020-09-02 Thread russurquhart1 via vim_use
Hi All, Yesterday, with the groups help, I was able to apply a macro to a group of Markdown files in my site directory, using: :args ~/site/**/inde*.md :argdo :normal @b :argdo :write (@b is a macro that searches for '---', moves up two lines, and inserts a new line, 'beta: true') I THOUGHT this