I've needed this a few times, and only now it occured to me, that maybe Vim could do it for me. I often save files whose numbers are many, and whose names do not matter (they're temporary anyway).
I have a directory full of files: file001.txt, file002.txt ...(they're not really named "filexxx.txt" - but for the sake of discussion ...). I often save a new one, and name it for example, file434.txt. Now since that's something I do often, I'd like to skip the naming checking part.
Is there a way vim script can be made as to check for the last filexxx.txt in the directory, and save the current buffer as filexxx+1. How should I go about writing something like that ? Has anyone done something like this before ?
All advices appreciated.