Wednesday, March 3, 2010

Re: Restructured Text and Firefox with Vim

On Mon, Feb 8, 2010 at 12:26 AM, ahmet <ahmet_nurlu@yahoo.com> wrote:
>
> Hi List,
>
> I am writing some restructured text with vim and want to see the
> result in the firefox. I got some hint from the webpage "http://
> www.zopyx.com/blog/editing-restructuredtext-with-vim". Everything
> works fine but when I preview the file everytime, it opens new a
> firefox tab. My question is that how I could prevent firefox to open a
> new tab. I want to see the result on the same page not in the
> different new tab. The code is below but I don't know how to change
> the code.
>
> ----------------------------------------------------------------------------------------------------------
> >
> :com RP :exec "Vst html" | w! /tmp/test.html | :q | !firefox /tmp/
> test.html
> ----------------------------------------------------------------------------------------------------------

I used Vst extensively for a couple of years, but I switched over to
the real reStructuredText a couple of years ago. It's more versatile,
faster, and better maintained. Install http://sphinx.pocoo.org/ to get
a bunch of additional useful tools, like Pygments for syntax coloring.

I use http://mg.pov.lt/restview/ to view documents in the browser. I
save the document in Vim, switch to the browser, and refresh the page.
Restview automatically regenerates the HTML.
--
/George V. Reilly george@reilly.org Twitter: @georgevreilly
http://www.georgevreilly.com/blog http://blogs.cozi.com/tech

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: