No need to mess with $cfilname.
I have a write-hook that saves numbered backups (file~#~, where # is 1, 2,
3, etc.) by
simply passing the filename to some code that makes a copy of the file
using the
next unused number and preserving the mod time.
--mike
On Fri, Apr 5, 2024 at 2:46 PM Thomas
On Thu, Apr 04, 2024 at 08:01:01PM +, david sowerby wrote:
> Hi, in Vim/Neovim I can save a copy of the file when I exit. The copy is
> renamed file-$(date +%s).bak. This gives me a file with an increasing number
> plus .bak. It looks like "date+%s" and "" do the same thing. Is this
>