From 0355815659818753a778ddc837337dcc59d30427 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 10 Jun 2019 18:03:28 +1200 Subject: Edit :PutDate command to support a range --- vim/vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 130affe8..d044ff74 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1170,8 +1170,8 @@ xnoremap C \ :setlocal cursorcolumn! cursorcolumn?gv " Insert an RFC2822-compliant date string into the buffer -command! PutDate - \ put =strftime('%a, %d %b %Y %T %z') +command! -range PutDate + \ put =strftime('%a, %d %b %Y %T %z') " Set up a quick command-function pair to run a command with the UTC timezone, " in this case, for my date-printing mappings. Is there a nicer way to do -- cgit v1.2.3