Puede cambiar el valor predeterminado Necesario 'nivel de magia'
:se nomagic
:se magic
Ver :he magic
me gustaría recomendar el uso de los escapes correspondientes en vez de evitar la ruptura de sus otras asignaciones.
/\v(\d+)
coincidirá dígitos consecutivos como cabría esperar con Perl expresiones regulares
De pattern.txt ayuda:
Examples:
after: \v \m \M \V matches ~
'magic' 'nomagic'
$ $ $ \$ matches end-of-line
. . \. \. matches any character
* * \* \* any number of the previous atom
() \(\) \(\) \(\) grouping into an atom
| \| \| \| separating alternatives
\a \a \a \a alphabetic character
\\ \\ \\ \\ literal backslash
\. \. . . literal dot
\{ { { { literal '{'
a a a a literal 'a'
{only Vim supports \m, \M, \v and \V}
It is recommended to always keep the 'magic' option at the default setting,
which is 'magic'. This avoids portability problems. To make a pattern immune
to the 'magic' option being set or not, put "\m" or "\M" at the start of the
pattern.
siento @Johnsyweb, ediciones simultáneas :) gracias por la ayuda! – sehe