From MacVim is there a command to open the currently edited HTML file in a web browser?
|
feedback
|
|
To do it just once, you can
which will call the shell command Of course you can bind a key, if you'll need it frequently:
And you may want to
to suppress warnings about unsaved file changes. See:
Note that you can get arbitrarily sophisticated with Vim scripting. For example, this function lets you view the current unsaved changes by use of an intermediate file:
(Replace both occurrences of | ||||
|
feedback
|