aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-10 10:19:56 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-10 10:19:56 +1200
commit58c7048f90f51e601dcae15162ee657f23c0e46f (patch)
treed95fd29c9009328e1c97a57ff65e300bf9742052
parentRename Date() to PutDate() to make func clearer (diff)
downloaddotfiles-58c7048f90f51e601dcae15162ee657f23c0e46f.tar.gz
dotfiles-58c7048f90f51e601dcae15162ee657f23c0e46f.zip
Document what appears to be a Vim v8.1 bug
-rw-r--r--vim/vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 3e7b4e0a..6132dbc6 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1179,6 +1179,11 @@ command PutDate
" in this case, for my date-printing mappings. Is there a nicer way to do
" this? I couldn't find one.
"
+" This presently seems to be broken in v8.1.1487; the timezone first chosen
+" seems to 'stick' permanently. I haven't worked out why yet. Using the new
+" getenv() and setenv() functions does not seem to fix it. It works fine in
+" Debian GNU/Linux's packaged v8.0.x.
+"
function! UTC(command) abort
let tz = expand('$TZ')
let $TZ = 'UTC'