aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-10 10:20:05 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-10 10:20:05 +1200
commite3ab2e71499e0c0617579a74ddf16af64dfcf2ef (patch)
tree3f4307996fc6fa5feacb656dd916fc2f018b5580
parentDocument what appears to be a Vim v8.1 bug (diff)
downloaddotfiles-e3ab2e71499e0c0617579a74ddf16af64dfcf2ef.tar.gz
dotfiles-e3ab2e71499e0c0617579a74ddf16af64dfcf2ef.zip
Inline a set-run-restore command triplet
-rw-r--r--vim/vimrc4
1 files changed, 1 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 6132dbc6..a501bd88 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1186,9 +1186,7 @@ command PutDate
"
function! UTC(command) abort
let tz = expand('$TZ')
- let $TZ = 'UTC'
- execute a:command
- let $TZ = tz
+ let $TZ = 'UTC' | execute a:command | let $TZ = tz
endfunction
command -complete=command -nargs=1 UTC
\ call UTC(<q-args>)