基本上,我想告诉Vim:
PS:不幸的是我使用Windows XP
最佳答案
如果您在Windows上运行Vim,则可以使用:
:! start http://localhost/index.php
这将使用默认的浏览器,如果要启动特定的浏览器,则将需要可执行文件的显式路径(而不是启动)。
从Vim帮助cmd:
:!{cmd}
Execute {cmd} with the shell. See also the 'shell' and 'shelltype' option.
显然,如果您使用的是其他系统,则只需要使用适当的命令即可在该平台上启动浏览器。
关于vim - 如何打开http ://localhost in my web browser from Vim?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2039835/