From e3ab2e71499e0c0617579a74ddf16af64dfcf2ef Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 10 Jun 2019 10:20:05 +1200 Subject: Inline a set-run-restore command triplet --- vim/vimrc | 4 +--- 1 file changed, 1 insertion(+), 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() -- cgit v1.2.3