Using Vim 8.0
I'm trying to make a table where the first column is the name of a file and the second column the creation date of such file, to which I have access by the exif data.
I would like to achieve this in one line, just to learn how.
Currently, I'm using:
:!ls
To get all the filenames I'll be working with. (If I want to filter .pdf files from this, how can I grep them out?)
Then, I would like to run something like this:
:read !exif -t 0x9003 -m
(which writes the date in the next line) but having the output append to the same line where the filename is, leaving a space or comma to separate the columns.
Was thinking that maybe I should write the ouput of !exif -t 0x9003 -m
to a register @a
and then use :normal $a<C-R>a
to append it, but, again, failed to figure out how to do that.
Another idea was to use :execute ':normal A ' . "foo"
,this almost works, but cannot figure out a way to use the output of exif
instead of "foo".
Thank you very much.