Results 1 to 8 of 8

Thread: vim and html

  1. #1
    Advisor NGene's Avatar
    Join Date
    May 2001
    Location
    Turku, Finland
    Posts
    662

    vim and html

    I recently switched from elvis to vim, and so far I like it. There's only one thing I miss.

    I edit a lot of html pages, and in elvis I could view the file in html mode. If I said :display html elvis viewed the file like a web browser does. I found this feature extremely useful when editing html pages. Can I do something similar in vim?

  2. #2
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re: vim and html

    Not that I know of ...

  3. #3
    Mentor cga's Avatar
    Join Date
    May 2001
    Posts
    1,433

    Re: vim and html

    Couldn't you write a macro to pipe the page to Lynx (or even Mozilla)? I know this can be done with LaTeX code and xdvi or gv, for example.

  4. #4
    Advisor NGene's Avatar
    Join Date
    May 2001
    Location
    Turku, Finland
    Posts
    662

    Re: vim and html


    Couldn't you write a macro to pipe the page to Lynx (or even Mozilla)?
    It just wouldn't be the same. Well, it could be cool anyway, but I have no idea how to do it. Ok, folks, where do I start?

    (ack! don't tell me I actually need to rtfm?! )

  5. #5
    Guest

    Re: vim and html

    i'm surprised GnuVince hasn't solved this one yet... if anyone here should know how to do it, it's him

  6. #6
    Guest

    Re: vim and html

    I've been bored with LJR these past few days. Actually I've been bored period. So I don't come here as often as I used too.

    And put this in your .vimrc:

    Code:
    " HTML pour NGene
    map zh :w<CR>:!w3m %<CR>
    When you're in normal mode, you just need to type zh and w3m will launch w3m with the document.

  7. #7
    Advisor NGene's Avatar
    Join Date
    May 2001
    Location
    Turku, Finland
    Posts
    662

    Re: vim and html

    Thanks, it worked!

  8. #8
    Guest

    Re: vim and html

    No problem miss

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •