diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-11 11:50:21 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-11 11:50:21 +1200 |
commit | 448423e4f8237f7ed3bace88327f1a6422584b04 (patch) | |
tree | bde2ef0eef9c2aa27160c4d468e238539c58888d /vim/plugin | |
parent | Mention the sources of a few mapping commands (diff) | |
download | dotfiles-448423e4f8237f7ed3bace88327f1a6422584b04.tar.gz dotfiles-448423e4f8237f7ed3bace88327f1a6422584b04.zip |
Allow -bar in custom commands
Diffstat (limited to 'vim/plugin')
-rw-r--r-- | vim/plugin/put_date.vim | 2 | ||||
-rw-r--r-- | vim/plugin/utc.vim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vim/plugin/put_date.vim b/vim/plugin/put_date.vim index 29cf886e..0828abe4 100644 --- a/vim/plugin/put_date.vim +++ b/vim/plugin/put_date.vim @@ -7,5 +7,5 @@ let loaded_put_date = 1 " RFC-2822 date string, using the system strftime() implementation. Allow it " to accept a range which defaults to the current line. " -command! -range PutDate +command! -bar -range PutDate \ <line1>put =strftime('%a, %d %b %Y %T %z') diff --git a/vim/plugin/utc.vim b/vim/plugin/utc.vim index 39eebad8..8fb84890 100644 --- a/vim/plugin/utc.vim +++ b/vim/plugin/utc.vim @@ -27,5 +27,5 @@ endfunction " The :UTC command itself completes another command name, and accepts one " required argument, which it passes in quoted form to the helper function. " -command! -complete=command -nargs=1 UTC +command! -bar -complete=command -nargs=1 UTC \ call s:UTC(<q-args>) |