From 670ce2be963b27eb43f0918e9b97391ddfaa5724 Mon Sep 17 00:00:00 2001 From: Michael Clemens Date: Mon, 31 Oct 2022 10:00:06 +0100 Subject: [PATCH] added macro for entering date --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7f90b7e..269e401 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,17 @@ Vim syntax file to imitate the syntax highting of Fast Log Entry (FLE). Because it's nice to take a small GNU/Linux based laptop with me on portable operations, just log everything with VIM and do the rest at home. -## Extras +## Extras / Shortcuts -You can insert the current time in UTC and HHMM format by pressing if you add the following lines to your .vimrc file: +You can insert the current time in UTC and HHMM format by pressing and the current date string by pressing if you add the following lines to your .vimrc file: - # Insert current time in HHMM format with + "Insert current time in HHMM format with let $TZ='UTC' :nnoremap "=strftime("%H%M ")P :inoremap =strftime("%H%M ") + "Insert current date with + :nnoremap "=strftime("date %G-%m-%d")P + :inoremap =strftime("date %G-%m-%d") ## Install