aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-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>)