Webpreview is a project mainly written in Vim Script, it's free.
make previewing pages in web browsers easily
This is a mirror of http://www.vim.org/scripts/script.php?script_id=2119
support preview edit pages in outer web browser, included file types like php,html,jsp and so on. You can just give a browser, web server in .vimrc like : " let g:Default_WebBrowser='c:Program FilesMaxthon2Maxthon.exe' " let g:Second_WebBrowser='' " let g:Default_WebDomain='http://weiye.cn' " let g:Default_WebRoot='D:/www'
Or give a server list and browser list like: " let g:WebList = [ " {'domain' : 'http:// .blog.weiye.cn','rootdir' : 'D:/www/blog/ '}, " {'domain' : 'http://blog.weiye.cn','rootdir' : 'D:/www/blog'}, " {'domain' : 'http://weiye.cn','rootdir' : 'D:/www'}, " {'domain' : 'http://aa.bb.cn','rootdir' : 'ftp://[email protected]/www/xx'} " ]
" let g:BrowserList = { " 'default' : 'c:Program FilesMaxthonsecondMaxthon.exe' , " 'second' : 'c:Program FilesMozilla Firefoxfirefox.exe' , " 'ie' : 'c:Program FilesInternet Exploreriexplore.exe' , " 'ff' : 'c:Program FilesMozilla Firefoxfirefox.exe' " }
support wildcard * in server list.support remote ftp server. In default, use ",bd" to preview the current edited page in the default web browsers and ",bs" in the second web server. Read the webpreview.vim document for more details