Let's say I have 10 files opened in buffer with vim *
. One way of saving the name of all those files inside a new file would be using the command:
:argdo !echo % >> filenames.txt
This command works fine and does what I expect... However, it opens a dialog where I need to press enter multiple times until I reach the number of files that are on my buffer... Like the following:
10 files to edit
Press ENTER or type command to continue
Press ENTER or type command to continue
Press ENTER or type command to continue
Press ENTER or type command to continue
Press ENTER or type command to continue
Press ENTER or type command to continue
Press ENTER or type command to continue
Press ENTER or type command to continue
Press ENTER or type command to continue
Press ENTER or type command to continue
How can I achieve this same goal without having to press enter multiples times?