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

Re: pastetoggle bug with mksession?

Expand Messages
  • Bram Moolenaar
    ... Thanks for fixing this! -- BLACK KNIGHT: I m invincible! ARTHUR: You re a looney. Monty Python and the Holy Grail PYTHON (MONTY) PICTURES LTD ///
    Message 1 of 4 , May 30, 2008
    • 0 Attachment
      Ben Schmidt wrote:

      > Randall Hansen wrote:
      > > Symptoms:
      > >
      > > 1. run `vim -S .session`, where .session contains this line:
      > > set pastetoggle=<leader>p
      > > 2. backslash-p works as expected
      > > 3. within vim, run `:mksession! .session`
      > > 4. look at .session, see this:
      > > set pastetoggle=\p
      > >
      > > Note that a single backslash isn't escaped, so it's ignored. This
      > > means that after I save my session, "p" in insert mode toggles paste
      > > rather than actually putting a "p" in the file. I have to edit the
      > > local .session file every time (more to the point, have sed do it for
      > > me automatically, but still ...).
      > >
      > > To my mind, after step 4 pastetoggle should be set to "<leader>p" or
      > > at least "\\p"
      > >
      > > Is this a bug? Am I doing something wrong?
      >
      > I think it's a bug, and I think this fixes it.
      >
      > Problem: pastetoggle when written with mkrc, mksession, etc. is converted to
      > printable characters, but not escaped.
      > Solution: escape the result of the conversion to printable characters
      > while writing.

      Thanks for fixing this!

      --
      BLACK KNIGHT: I'm invincible!
      ARTHUR: You're a looney.
      "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ download, build and distribute -- http://www.A-A-P.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --~--~---------~--~----~------------~-------~--~----~
      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.