Re: Trying to apply macro to all files under a folder

2020-08-31 Thread russurquhart1 via vim_use
You are correct! -Original Message- > When you set the arg list, where does it start? from your current > working directory? It depends a bit on how you populate it and how your OS expands globs, I suspect.  Once you've populated it with   :args **/inde*.md or whatever, you can

Re: Trying to apply macro to all files under a folder

2020-08-31 Thread Tim Chase
On 2020-08-31 23:36, russurquha...@verizon.net wrote: > I *think* you need to apply the :normal to the whole file unless the > macro itself does everything in one invocation. > > The @b macro only adds a single line of text. If it's a whole line, you might have better luck with the :put command

Re: Trying to apply macro to all files under a folder

2020-08-31 Thread russurquhart1 via vim_use
Hi TIm, -Original Message- From: Tim Chase To: russurquhart1 via vim_use Sent: Mon, Aug 31, 2020 6:14 pm Subject: Re: Trying to apply macro to all files under a folder On 2020-08-31 22:57, russurquhart1 via vim_use wrote: > My next step would have been: :argdo :normal @b I *think*

Re: Trying to apply macro to all files under a folder

2020-08-31 Thread Tim Chase
On 2020-08-31 22:57, russurquhart1 via vim_use wrote: > My next step would have been: :argdo :normal @b I *think* you need to apply the :normal to the whole file unless the macro itself does everything in one invocation. If it only does one line and you need it to do the whole file, you might

Trying to apply macro to all files under a folder

2020-08-31 Thread russurquhart1 via vim_use
I found a ref to this and some commands that should work, but wont for me. In my site directory, are other directories and files. I have a macro that I created, @b that i want to run recursively on all files named index.md in all the folders in site. I had initially set CWD to the site