diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-10 16:16:49 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-10 16:16:49 +1200 |
commit | 29ccdfe9f77534b127419f77ed5cf6e8b05d04f5 (patch) | |
tree | bbfedae5295a2938b7798b6178fc36a54453d548 | |
parent | Merge branch 'release/v5.33.0' (diff) | |
download | dotfiles-29ccdfe9f77534b127419f77ed5cf6e8b05d04f5.tar.gz dotfiles-29ccdfe9f77534b127419f77ed5cf6e8b05d04f5.zip |
Add bang to :command declaration so they redefine
-rw-r--r-- | vim/vimrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |