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
2010-09-21 12:59:03
Good point about plugins. Somehow I didn't thought of this. Thank you for an answer.
bgaluszka
2010-09-21 13:01:27
I've added a link to a wikia page that may be useful to you.
Al
2010-09-21 13:02:20