[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
macro question
From: |
david sowerby |
Subject: |
macro question |
Date: |
Thu, 4 Apr 2024 20:01:01 +0000 (UTC) |
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 "&stime" do the same thing. Is this
possible in vile? I know I can save a file as file.bak but I like to save a
series of changed files, not just one.
So a macro that saves a copy and I then call that macro with write-hook.
Thanks.
==========================================
Politics is like driving a car: If you want to go forward you put it in D,
if you want to go backwards you put it in R.
- macro question,
david sowerby <=