I needed this several times, and only now it happened to me that maybe Wim could do it for me. I often save files, the number of which is many, and whose names do not matter (they are still temporary).
I have a directory full of files: file001.txt, file002.txt ... (they are not really called "filexxx.txt" - but for the sake of discussion ...). I often save a new one and name it, for example, file434.txt. Now, since I do this often, I would skip the name verification part.
Is it possible to make a vim script to check the last file xxx.txt in the directory and save the current buffer as filexxx + 1. How should I write something like this? Has anyone done something like this before?
All tips were appreciated.
Roook source
share