Friday, September 27, 2019

Re: Best way to launch a URL from within VIM

Am 27.09.2019 um 08:06 schrieb 'J S' via vim_use:
> Vim 7.something under (MS) Windows 7.
>
> I want to do the equivalent of:
>
> :!start http://something
>
> But that doesn't work.

You need to put a space after `!':
:! start http://something

Non-blocking:
:sil ! start http://something

If you put double quotes around the argument, these will be used for the title:
:sil ! start "http://something"
(opens a console) thus you will want to use
:sil ! start "title" "http://something"
then.

As probably mentioned already, there is more info under
:h :!start

> This *does* work, but it is ugly (and opens lots of command prompt windows and requries a few "press any key to continues"s. Also, it seems to run CMD twice - i.e., you end up running:
>
> cmd /c cmd /c start ...
>
> :!cmd /c start http://something
>
> I seek a simpler and, ideally, seamless (i.e., no "press any key"s) way.

See above :-)

--
Andy

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5D8E1C01.1010109%40yahoo.de.

No comments: