Preview.vim is a project mainly written in Vim Script, it's free.
Preview current file in selected browser.
This is a mirror of http://www.vim.org/scripts/script.php?script_id=797
This has been tested on windows only. It can probably be made to work on linux but is untested on that platform..(one day ;-)) (If anyone modifies this script to work on both platforms, please feel free to upload the modified script)
Pressing
There is also the option to include only files of a specific type. These are .php, .php3, .jsp, .asp, .html, .htm, and .vim at the moment but others can easily be added.
If the file is in your server directory (http:localhost) or a sub directory of it, it will be previewed through the server - NOT as a local file.
egs http:localhost est.php http:localhostexampleschapter04index.php
Otherwise it will be previewed simply as a local file eg c:mysiteindex.html