sponsor Vim development Vim logo Vim Book Ad

webpreview : make previewing pages  in web browsers easily

 script karma  Rating 0/2, Downloaded by 621  Comments, bugs, improvements  Vim wiki

created by
weiye zhou
 
script type
utility
 
description
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 Files\Maxthon2\Maxthon.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://user@192.168.202.110/www/xx'}
"            \ ]

" let g:BrowserList = {
"            'default' : 'c:\Program Files\Maxthonsecond\Maxthon.exe' ,
"            'second'  : 'c:\Program Files\Mozilla Firefox\firefox.exe' ,
"            'ie'      : 'c:\Program Files\Internet Explorer\iexplore.exe' ,
"            'ff'      : 'c:\Program Files\Mozilla Firefox\firefox.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
 
install details
put the webpreview.vim into $vim/vimfiles/plugin/ (win32) or $vim/.vim/plugin/(linux)
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
webpreview.vim 0.2 2008-01-11 7.0 weiye zhou Initial upload
ip used for rating: 18.119.139.104

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github