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

Marks, was Re: making changes...

Expand Messages
  • Douglas L . Potts
    ... [--- snip ---] I ve also tried to enhance Benji s Mark() function, allowing you to use it similarly to regular :marks. See VirMark at:
    Message 1 of 6 , Feb 1, 2002
    View Source
    • 0 Attachment
      On Thu, Jan 31, 2002 at 10:14:44PM -0500 Benji Fisher wrote:
      > "HALIM,SALMAN (HP-NewJersey,ex2)" wrote:
      > >
      > > thank you; i use a very similar cursor restoring scheme by benji fisher:
      > > call Mark() and it returns a string which, when executed, restores the
      > > cursor and screen. the problem is that i frequently hit 'u' to undo a
      > > change BEFORE i realize that it might not undo quite the change i have in
      > > mind and hitting ctrl-r doesn't move the cursor back (and it's too late to
      > > mark the original location).
      > [snip]
      >
      > I am glad to see this getting used, but you forgot to tell people where
      > to find it. (Or did you save it when I first posted it to the list?) It is
      > in foo.vim, my file of sample vim scripts,
      > http://vim.sourceforge.net/scripts/script.php?script_id=72
      [--- snip ---]

      <plug>
      I've also tried to enhance Benji's Mark() function, allowing you to use
      it similarly to regular :marks. See VirMark at:

      http://vim.sourceforge.net/scripts/script.php?script_id=140

      It allows you to do :SetMark <alphachar> and :GoMark <alphachar>,
      like m<alphachar> and `<alphachar>. But as they don't "contaminate" the
      regular marks, they are good for plugin and script use, and use buffer
      specific variables to hold the mark data, so that they are buffer
      specific. But, they are not persistent between sessions, like regular
      marks are :(.
      </plug>

      Thanks again Benji,
      -Doug

      --
      *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
      Douglas L. Potts
      "The three Rs of Microsoft support: Retry, Reboot, Reinstall."
      -Ralf Hildebrandt <R.Hildebrandt@...>
      GPG Fingerprint: 768A EEF8 197A 4C9A 5EF7 DA5B 464C 97DF DCD5 68C2
      *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    Your message has been successfully submitted and would be delivered to recipients shortly.