On Jul 11, 9:33 pm, "Benjamin R. Haskell" <[email protected]> wrote: > On Sun, 11 Jul 2010, Bee wrote: > > Mac terminal vim version 7.2.444 > > Linux terminal version 7.2.330 > > > :set formatlistpat > > returns: > > formatlistpat=^\s*\d\+[\]:.)}\t ]\s* > > > Doing the following results in an error > > > :set formatlistpat=^\s*\d\+[\]:.)}\t ]\s* > > > E518: Unknown option: ]\s* > > > I know this is the default... > > When I tried to customize I got the error and started with the > > default. > > > This is what is needed to re-create the default. > > > :set formatlistpat=^\\s*\\d\+[\\]:.)}\\t\ ]\\s* > > > Is this a bug? > > --or-- > > What kind of magic? > > This kind of magic :-) > > :help option-backslash > > Gist: backslashes and spaces are special in option value commands. > > The :set command doesn't attempt to 'escape' its output when you request > the value back.
Ah oh !>) THAT kind of magic. Thank you for the reference. I guess I have never used :set with a space or \ -- You received this message from the "vim_dev" 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
