From 7be49e931830a5062957e47ad38177e6b38f4a30 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 13 Oct 2022 18:27:30 +0200 Subject: [PATCH] vim:keys: Use RFC 3339 for vmap version of ` utc` Forgot to change the format for both mappings in 73aa0e97523a2 ("vim:keys: Use RFC 3339 when converting unix times"). --- .config/vim/vimrc.d/40-keys.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index b8e3274..f0f3536 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -209,7 +209,7 @@ nmap Q gqap " Convert Unix timestamp to human readable " Mnemonic: "Unix timestamp convert" with pun to UTC nnoremap utc ciw=strftime("%F %T", @") -vnoremap utc :s/\v(^\|[^0-9])\zs[0-9]{10}\ze([^0-9]\|$)/\=strftime("%c",submatch(0))/g +vnoremap utc :s/\v(^\|[^0-9])\zs[0-9]{10}\ze([^0-9]\|$)/\=strftime("%F %T",submatch(0))/g " Match the behaviour of [[ and []. ]] forward to next '}' in the first column " and ][ fw to next '[', instead of the other way around.