如何像vim或Emacs编辑器内打开网页浏览器(如Firefox)的文件? [英] How to open files in web browsers (e.g Firefox) within editors like vim or emacs?
问题描述
如何像vim或Emacs编辑器中打开浏览器中(例如Firefox)的文件?记事本+ +在浏览器中打开的文件pressing按Ctrl + Shift + Alt + X(火狐)。是否有办法在gVim的或Emacs这样做吗?
How to open files in browsers (e.g Firefox) within editors like vim or emacs? Notepad++ open files in browsers by pressing Ctrl+Shift+Alt+X (Firefox). Is there a way to do this in gVim or Emacs?
推荐答案
浏览-URL-的文件是一个互动编译Lisp函数
`浏览-url.el。
browse-url-of-file is an interactive compiled Lisp function in `browse-url.el'.
这势必<菜单栏> < HTML> <在浏览器和负载GT这个缓冲区;
,C-C
C-ž诉
It is bound to <menu-bar> <HTML> <Load this Buffer in Browser>
, C-c
C-z v.
(浏览的网址的文件和放大器;可选的文件)
问一个WWW浏览器中显示的文件。结果
显示当前缓冲区的文件,如果文件是零,或者叫
交互方式。打开文件名与功能的URL
浏览-URL-文件网址
。通过URL来利用浏览器
浏览,网址
函数然后运行浏览的网址的文件钩
。
Ask a WWW browser to display file.
Display the current buffer's file if file is nil or if called
interactively. Turn the filename into a URL with function
browse-url-file-url
. Pass the URL to a browser using the
browse-url
function then run browse-url-of-file-hook
.
这篇关于如何像vim或Emacs编辑器内打开网页浏览器(如Firefox)的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!