0:65366ba5ac77
Anton Shestakov <engored@ya.ru>, Sun, 14 Sep 2014 13:54:37 +0900
Cheating automated.

next change 2:7493e26a3304

source.rst

Permissions: -rw-r--r--

Other formats: Feeds:
Column 1
========
Moving
------
`{` `}`
beginning of *previous*, *next* paragraph
`(` `)`
beginning of *previous*, *next* sentence
`0` `gm`
*beginning*, *middle* of line
`^` `$`
*first*, *last* character of line
`ngg` `nG`
line n, default the *first*, *last*
`n%`
percentage n of the file
`n|`
column n of current line
`%`
match of next brace, bracket, comment, #define
`nH` `nL`
line n from *start*, *bottom* of window
`M`
middle line of window
Editing
-------
`i` `a`
insert *before*, *after* cursor
`I` `A`
insert at *beginning*, *end* of line
`gI`
insert text in first column
`o` `O`
open a new line *below*, *above* the current line
`cc` `S`
change current line
`C`
change to the end of line
`gum` `gUm`
*lowercase*, *uppercase* text of movement m
Copying
-------
`yy` `Y`
yank current line into register
`p` `P`
put register *after*, *before* cursor position
`]p` `[p`
like `p`, `P` with indent adjusted
`gp` `gP`
like `p`, `P` leaving cursor after new text
Column 2
========
VIM Regex
---------
``*``
0 or more
``\+``
1 or more
``\=``
0 or 1
``\{n,m}``
from n to m
``\{n}``
exactly n
``\{n,}``
at least n
``\{,m}``
at most m
``\{-}``
non-greedy ``*``
``\{-n,m}``
non-greedy ``\{n,m}``
``\{-n,}``
non-greedy ``\{n,}``
``\{-,m}``
non-greedy ``\{,m}``
Column 3
========
re Extensions
-------------
``(?iLmsux)``
the group matches the empty string; the letters set the corresponding flags
``(?:...)``
a non-capturing version of regular parentheses
``(?P<name>...)``
the substring matched by the group is accessible via the symbolic group
name
``(?P=name)``
matches whatever text was matched by the earlier named group named
(backreference)
``(?#...)``
the contents of the parentheses are simply ignored
``(?=...)``
matches next, but doesn't consume any of the string (lookahead assertion)
``(?!...)``
negative lookahead assertion
``(?<=...)``
matches a preceding string (lookbehind assertion)
``(?<!...)``
negative lookbehind assertion, patterns which start with it may match at
the beginning of the string being searched
.. break the list
``(?(id/name)yes-pattern|no-pattern)``
magic. ``(<)?(\w+@\w+(?:\.\w+)+)(?(1)>)``