In my script, I am trying to open an URL in my default browser using
silent exec '!rundll32 url.dll,FileProtocolHandler '.a:url
where a:url
is an URL-encoded string containing percent %
signs.
Vim obviously expands the percent sign with the current file name, resulting in an URL like
https://slovnik.seznam.cz/preklad/cesky_nemecky/bohatmyFile.txtc3myFile.txtbd
instead of
https://slovnik.seznam.cz/preklad/cesky_nemecky/bohat%c3%bd
(Remark: The encoded string stands for "bohatý" - "rich" in Czech)
How can I prevent VIM from expanding the percent sign?