diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-16 19:45:40 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-16 19:49:13 +1200 |
commit | d03a9d7b3f724706775c793df7b6b627ea4ef60a (patch) | |
tree | a4a1d06b41dd8475622b43434968d7daaaa67d04 /vim/plugin | |
parent | Document choice of format for PutDate() (diff) | |
download | dotfiles-d03a9d7b3f724706775c793df7b6b627ea4ef60a.tar.gz dotfiles-d03a9d7b3f724706775c793df7b6b627ea4ef60a.zip |
Consolidate utc.vim and put_date.vim into latter
Diffstat (limited to 'vim/plugin')
-rw-r--r-- | vim/plugin/put_date.vim | 5 | ||||
-rw-r--r-- | vim/plugin/utc.vim | 6 |
2 files changed, 2 insertions, 9 deletions
diff --git a/vim/plugin/put_date.vim b/vim/plugin/put_date.vim index 486171a3..e54d6054 100644 --- a/vim/plugin/put_date.vim +++ b/vim/plugin/put_date.vim @@ -2,6 +2,5 @@ if exists('loaded_put_date') finish endif let loaded_put_date = 1 -let s:rfc_2822 = '%a, %d %b %Y %T %z' -command! -bar -range PutDate - \ <line1>put =strftime(s:rfc_2822) +command! -bang -bar -nargs=* -range PutDate + \ call put_date#(<q-line1>, <q-bang>, <q-args>) diff --git a/vim/plugin/utc.vim b/vim/plugin/utc.vim deleted file mode 100644 index 9b8b647a..00000000 --- a/vim/plugin/utc.vim +++ /dev/null @@ -1,6 +0,0 @@ -if exists('loaded_utc') - finish -endif -let loaded_utc = 1 -command! -bar -complete=command -nargs=1 UTC - \ call utc#(<q-args>) |