On Di, 26 Mär 2019, Bram Moolenaar wrote:
> expand() wasn't made for expanding environment variables. Why not use
> $PATH directly?
because I was trying to use an environment variable that is not know to
Vim :)
> Not sure if $random works, might be something built into cmd.exe.
Yes it is.
> You could try using system('echo %random%'), but it's likely slower.
This works at least. Still wondering, why expand() does not appear to be
working for me correctly. Never noticed it and I believe in the past, it
has worked for me. Hm..
Best,
Christian
--
Altwiedermus, der
Jemand, der sich bei jeder Gelegenheit an herumstehende Klaviere setzt
und "Alle meine Entchen" spielt.
-- Douglas Adams, John Lloyd, Sven Böttcher ("Der tiefere Sinn
des Labenz")
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.