From 39e5e1913f432136b8746d64e37494eefa1f07c8 Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 2 Dec 2021 22:06:40 +0800 Subject: Add command :Datetime to show current time or translate a Unix timestamp --- plugin/command.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugin/command.vim') diff --git a/plugin/command.vim b/plugin/command.vim index a8e2998..d751831 100644 --- a/plugin/command.vim +++ b/plugin/command.vim @@ -5,3 +5,6 @@ command! -bar -bang -nargs=+ -complete=file Edit call utils#MultiEdit([] call utils#Cabbrev('edit', 'Edit') call utils#Cabbrev('man', 'Man') + +" show current date and time in human readable format +command! -nargs=? Datetime echo utils#iso_time() -- cgit v1.2.3