aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-10 10:19:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-10 10:19:38 +1200
commit577dd1d84ef4b39d661fded58276b177aa3692f8 (patch)
tree0ac7198bcf5b5e229b0baf4fad7d468ed6699cdc
parentFactor out date printing into function (diff)
downloaddotfiles-577dd1d84ef4b39d661fded58276b177aa3692f8.tar.gz
dotfiles-577dd1d84ef4b39d661fded58276b177aa3692f8.zip
Rename Date() to PutDate() to make func clearer
-rw-r--r--vim/vimrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index dfd09db0..3e7b4e0a 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1172,7 +1172,7 @@ xnoremap <Leader>C
\ :<C-U>setlocal cursorcolumn! cursorcolumn?<CR>gv
" Print an RFC2822-compliant date string
-command Date
+command PutDate
\ put=strftime('%a, %d %b %Y %T %z')
" Set up a quick command-function pair to run a command with the UTC timezone,
@@ -1190,10 +1190,10 @@ command -complete=command -nargs=1 UTC
" Leader,d inserts the local date (RFC 2822)
nnoremap <Leader>d
- \ :<C-U>Date<CR>
+ \ :<C-U>PutDate<CR>
" Leader,D inserts the UTC date (RFC 2822)
nnoremap <Leader>D
- \ :<C-U>UTC Date<CR>
+ \ :<C-U>UTC PutDate<CR>
" Leader,e forces a buffer to be editable
nnoremap <Leader>e