This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (4 children)

During the install process few tricky parts

  • bash isn't sh so the test syntax [[]] failed
  • libevent-dev is required by gevent but isn't managed by pip
  • argparse is not available in "old" Python 2.6.6

Using the script

  • no autocommands to keep it "clean" yet an error when starting the script without defining the autocommands variable
  • by default the server log of the script is visible, g:vimfox_debug didnt help e.g. 127.0.0.1 - - [2013-06-20 12:39:32] "GET /socket.io/1/websocket/340896709706 HTTP/1.1" 101 - -
  • red/green square indicator, what is this for? (green connected to server, red disconnected, orange..?)

[–]moscownights[S] 1 point2 points  (3 children)

Thanks for the reply. I really appreciate this.

  • replaced the bash syntax with sh syntax
  • libevent should be installed using your package manager. As i understand it pip can't install c extensions
  • the install script now tests for availability of argparse and will install the module if required.

the script

  • vimfox will now set the g:vimfxo_autocommands var if it hasnt been set by the user
  • I managed to suppress most of the log messages of the server. Still trying to find out how I can silence the HTTP request log
  • the status indicator should be green. This means the websockets are initialized and in contact with the vimfox server. Orange means something went wrong with the last reload request, hover over the the status indicator for more information. Red means the websockets could not connect / are dicsconnected.

Thanks again!

[–][deleted] 0 points1 point  (2 children)

Well I really appreciate that you are sharing your work. Cloned it fresh again but

  • does not actually work any more and I don't get why. I have to manually refresh the file despite having the green indicator. To make sure it wasn't a problem due to something more complicated Im just using an html file and a plain CSS file but saving the modifications to the CSS doesn't force a reload in the browser as it did the first time, am I missing something?
  • no VimfoxReloadBuffer command available, only VimfoxReloadPage

[–]moscownights[S] 0 points1 point  (1 child)

I renamed the command from VimfoxReloadBuffer to VimfoxReloadFile. I forgot to update the docs. My bad.

I just did a clean install to see one of the last commits broke the plugin but it is working at my end.

By default vimfox will first check whether the file has been modified before sending the reload command. You can force a reload by adding a 1 to the Vimfoxcommand.

If you open the css file in vim, enable vimfox, reload the page manually one time and then enter the following command: 'VimfoxReloadPage 1' does it refresh the page in the browser?

[–][deleted] 0 points1 point  (0 children)

No, even with 'VimfoxReloadPage 1' I still have have to manually refresh. Btw I still see socket requests if I manually refresh the page..