Le 09/03/2025 à 09:49, Christian Brabandt a écrit :
On Sun, 09 Mar 2025, 'sukolyn' via vim_use wrote:how could I make update recorded only if I write to file?You may want to use a BufWritePre autocommand instead. Thanks, Christian
that's it. thank you.
: au BufWritePre * if (&ft == "html" || &ft=="xhtml") | exe 'g/http-equiv="last-modified"/s/content=".*/content="'.strftime("%Y-%m-%d %T").'">' | endif
No comments:
Post a Comment