jaxbot / browserlink.vim

Live browser editing for Vim
MIT License
711 stars 38 forks source link

brolink.js doesn't seem to serve any webpages. #11

Closed zackp30 closed 10 years ago

zackp30 commented 11 years ago

When I go to localhost:9001, the browser is loading socket.js, after that it then goes on to request "/" of localhost:9001 everytime I save a HTML document in Vim. But "/" is, well, nothing, according to Firefox (page source is blank).

jaxbot commented 11 years ago

Brolink is not supposed to serve web pages; you load socket.js from localhost:9001 into your own source file, and then load the webpage from whatever server it is hosted on. For example, on a page served on localhost, you would include

<script src='http://localhost:9001/socket.js'></script>

if you wanted to link Vim to that page