tags:

views:

79

answers:

1

I use "very magic" for regexp searches (i.e. /\v or %s/\v) but I wish I could set some option so I don't have to include \v anymore, anywhere. Is there a way to do this?

+6  A: 

Not directly, however you can always use a mapping:

:nnoremap / /\v
:cnoremap %s/ %s/\v

Even if you could set 'very magic' in the way you can set nomagic, you really wouldn't want to as it would break pretty much every plugin in existence.

Edit

See also this page.

Al
Good point about plugins. Somehow I didn't thought of this. Thank you for an answer.
bgaluszka
I've added a link to a wikia page that may be useful to you.
Al