Tony Mechelynck wrote:

> On 19/09/09 00:54, bgold12 wrote:
> >
> > I recently started doing searches with 'very magic' turned on using
> > \v. Obviously it would be really annoying to have to type the \v every
> > time you want to search for something, so I mapped / to /\v, but this
> > is still undesirable as it doesn't cover the * and # operations, and
> > it adds an unnecessary element to the search expression. Why is there
> > not a setting for 'very magic' that would preclude having to include
> > the \v in every search expression, for example set magic=very?
> >
> > Thanks.
> 
> ":set magic=very" is not possible, and I believe never will be, because 
> 'magic' is a Boolean option, and IIUC Bram won't break compatibility for 
> this kind of reason.
> 
> Changing an existing option from Boolean to String or vice-versa has 
> unpleasant properties, as follows:

It's not only because of changing the option type, it's also because
changing this option results in changing the meaning of patterns
everywhere.  It's a good way to break existing scripts.

The 'magic' option should not exist.  It's only there for Vi
compatibility.  See ":help 'magic'" for the note that you should always
keep this option at its default value.

-- 
If VIM were a woman, I'd marry her.  Slim, organized, helpful
and beautiful; what's not to like?     --David A. Rogers

 /// Bram Moolenaar -- [email protected] -- 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to