The vh script
The vh shell script
I wrote a script that starts vi on an html, called
You use it just like vi by typing:
point Netscape to 'myfilename' and then run vi on 'myfilename.html'.
If myfilename.html does not exist, vh will create
a small starter html for you.
(vh might stand for vim html,
or then again, it might stand for Voila Haemer!)
By the way, you'll need
a shell script that makes a top right hand window,
to run the atchange in. The window starts iconified in the topright
corner of the screen so it is out of the way.
would also work, but it isn't iconified and so gets in the way.)
Bugs and other confusions:
Jeff Haemer has taken the idea of vh and made a better script
that solves all these problems and does not require
external windows. See the atchange page for current information.
I don't know how to get rid of the window
that atchange runs in, at the moment you have to do it by hand.
Sometimes I get thrown back into vi if I :q out.
Sometimes netscape refreshes 3 times. It may be that
I've got atchange running at 0.25 seconds and
it reacts several times while the file is being
written out. Putting a 1 second sleep into
the atchange file (after the refresh) seems to have helped.
- A sort-of bug: If you start a new netscape, that's
the one that will be updated.
(This is described in the Netscape remote control document.)
Maybe I should program up the thing to recognize which
Netscape it should control ... some other day!
Hmm - maybe that's not even true. Two netscapes
seem to interfere with each other.
origin: 1997 January 1
updated: 2012 Apr 02