aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-10 16:16:49 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-10 16:16:49 +1200
commit29ccdfe9f77534b127419f77ed5cf6e8b05d04f5 (patch)
treebbfedae5295a2938b7798b6178fc36a54453d548
parentMerge branch 'release/v5.33.0' (diff)
downloaddotfiles-29ccdfe9f77534b127419f77ed5cf6e8b05d04f5.tar.gz
dotfiles-29ccdfe9f77534b127419f77ed5cf6e8b05d04f5.zip
Add bang to :command declaration so they redefine
-rw-r--r--vim/vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index dfa6c7ce..ce3d3d7d 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1173,7 +1173,7 @@ xnoremap <Leader>C
\ :<C-U>setlocal cursorcolumn! cursorcolumn?<CR>gv
" Print an RFC2822-compliant date string
-command PutDate
+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,
@@ -1189,7 +1189,7 @@ function! s:UTC(command) abort
let tz = expand('$TZ')
let $TZ = 'UTC' | execute a:command | let $TZ = tz
endfunction
-command -complete=command -nargs=1 UTC
+command! -complete=command -nargs=1 UTC
\ call s:UTC(<q-args>)
" Leader,d inserts the local date (RFC 2822)