On Fri, May 19, 2006 at 08:22:40AM EDT, Benji Fisher wrote:
> On Thu, May 18, 2006 at 10:08:53PM -0400, cga2000 wrote:
> > 
> > I was wondering if another approach such as using a markup language
> > that supports tables might not be preferable in the long run. What I
> > mean by this is that it might be a little more difficult to start off
> > with but might provide more control and facilities and end up being a
> > more "portable" solution.
> > 
> > html would be an obvious candidate but I suppose that there are others
> > in the linux world?
> > 
> > Is there any way I can split the screen and have the source version of a
> > document written in a markup language in one window and the compiled
> > version in the other?  With a simple command or key combo that I could
> > issue in the "source" window that would cause a refresh of what is
> > displayed in the other window..? Or is vim just not suited for this
> > kind of approach?
> 
>      It depends on what you mean by "split the screen."  

vim vertical split on an xterm. 

> If you want one window that has vim running in the bottom half and an
> HTML browser running in another, 

yes.. pretty much what I had in mind.. another example: I'm writing a
man page and I would like to work on the source in the left vim window
and check the rendered man page in the right vim window:

1. I make changes to my man page & save to disk
2. I switch to the other window and hit the "refresh" key
3. Now I can see the results of my changes
4. Back to 1. above etc..

In order to do this in vim you would probably need to be able to run a
shell in a vim window - doesn't seem to be possible.

> you will have to look for some other program that can embed both.  

I use gnu/screen and the one feature that I miss is that it does not
have vertical split. So I can't have my source and output side by side
visualising in one window the outcome of my changes in the other.

> If you are content with [g]vim and a browser running in separate
> windows, it should not be hard (depending on your OS) to have vim save
> the current version and send the browser a command to re-load the
> file.

It doesn't have to be html, though. Some very basic markup language
that provides headers, paragraphs, lists, and tables and that could be
easily translated to html, pdf, postscript, and simple text would be
well-adapted to my needs. 

No idea if linux has such a thing.

Thanks,

cga

Reply via email to