Loading ...
Sorry, an error occurred while loading the content.

Re: How to save highlight?

Expand Messages
  • A.Politz
    ... Nonetheless possible via call writefile([string(getmatches())],fname) and exec call setmatches( .readfile(fname)[0]. ) . Though this stuff is local to
    Message 1 of 3 , Mar 31, 2008
    • 0 Attachment
      Tim Chase wrote:

      >>Micosoft word can highlight a line in a file and save the
      >>highlight.
      >>
      >>
      > You can highlight a particular line-number:
      >
      > :match Error /\%32l.*/
      >
      >or a range of text:
      >
      > :match Error /to be\_.\{-}question/
      >
      >and there are other such combinations. To get them to "persist"
      >across vimming sessions, it's best to use a syntax-aware format
      >such as HTML, LaTeX or DocBook. Because vim is a *text* editor,
      >not a word-processor, there's no such thing as "highlighting" in
      >the word-processor sense.
      >
      >
      >
      >
      Nonetheless possible via
      call writefile([string(getmatches())],fname)
      and
      exec 'call setmatches('.readfile(fname)[0].')'
      .

      Though this stuff is local to windows, not buffer.

      -ap

      --
      :wq


      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.