Vim:在后台打开 Firefox 的按键映射绑定
" 打开 firefox - 映射到 Option|Command|f
map <M-D-f> :!/Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -P dev
以上可以工作,但在 Vim 中会阻塞。我想做:
map <M-D-f> :!/Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -P dev &
但 Firefox 打不开。有关创建从 vim 中打开 firefox 的键绑定的任何建议顺便说一句,我实际上正在使用 macvim。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试
或
不要忘记输入
CTRL-v Enter
来获取^M
。我测试过
(因为 和 在 Terminal.app vim 中似乎对我不起作用),它对我有用。
try
or
Don't forget to type
CTRL-v Enter
to get the^M
.I tested
(since
<M-
and<D-
don't seem to work for me inside Terminal.app vim), and it worked for me.