|
\
|
Escape next character
|
|
^
|
Start-of-line
|
|
$
|
End-of-line
|
|
.
|
Any char
|
|
*
|
0 or more quantifier
|
|
~
|
Match last given substitute string
|
|
[...]
|
Match range
|
|
[^...]
|
Not range
|
|
&
|
In replacement: insert whole matched pattern
|
|
\<
|
Beginning of a word
|
|
\>
|
End of word
|
|
\(...\)
|
Group
|
|
\|
|
Separate alternative
|
|
\_.
|
Any single char or end-of-line
|
|
\+
|
1 or more quantifier
|
|
\=
|
0 or 1 quantifier
|
|
\?
|
or or 1 quantifier
|
|
\{n,m}
|
n to m quantifier
|
|
\{n}
|
n quantifier
|
|
\{n,}
|
at least n quantifier
|
|
\{,m}
|
0 to m quantifier
|
|
:g/<pattern>/d_
|
delete all lines matching pattern
|
|
s/^.*$\n//
|
delete empty lines
|
|
s/<pattern>/new &/
|
Replace pattern by "new <whole matched pattern>"
|
|
s/<pattern>/\=@a/
|
Replace pattern by content of register "a"
|
|
s/<pattern>//gn
|
Count nb occurence of pattern
|
|
\@<=
|
positive look behind
|
|
\@<!
|
negative look behind
|
|
\@=
|
positive look ahead
|
|
\@!
|
negative look ahead
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.