diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-10 18:03:28 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-10 18:03:28 +1200 |
commit | 0355815659818753a778ddc837337dcc59d30427 (patch) | |
tree | 4960b0a3e5e6ea0f40ab4833e61f1e4095492e13 | |
parent | Correct a comment describing PutDate() (diff) | |
download | dotfiles-0355815659818753a778ddc837337dcc59d30427.tar.gz dotfiles-0355815659818753a778ddc837337dcc59d30427.zip |
Edit :PutDate command to support a range
-rw-r--r-- | vim/vimrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1170,8 +1170,8 @@ xnoremap <Leader>C \ :<C-U>setlocal cursorcolumn! cursorcolumn?<CR>gv " Insert an RFC2822-compliant date string into the buffer -command! PutDate - \ put =strftime('%a, %d %b %Y %T %z') +command! -range PutDate + \ <line1>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 |