How dump :augroup into new buffer/file?

Hi,

I am a vim beginner in the sence that I am reading about autocmd atm.

I am wondering how I pipe/dump :augroup command into a new buffer.

What I have tried:

:w !augroup (in new buffer)
and also
:new | r !augroup

I also find results on how to redirect "@ but that seems like such overkill right?

To dump the output of any command to a buffer, you can use

:pu=execute('augroup')
3 Likes