Navigation Menu

Skip to content

Commit

Permalink
Motions: Describe a regexp motion
Browse files Browse the repository at this point in the history
  • Loading branch information
runpaint committed May 7, 2010
1 parent 737514b commit 07afba0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions text/05_editing/02_selecting_text_with_motions.html
Expand Up @@ -182,3 +182,10 @@ <h4>Discussion</h4>
<p>So, to delete a paragraph, position your cursor anywhere inside it then hit
<kbd>dap</kbd>. <em>D</em>elete <em>a</em> <em>p</em>aragraph - it even sounds
sensible<span class="fn">No, this is not a bug.</span>.</p>

<p>A motion can also be a regular expression, in which case it describes the
text matched: extending from the current cursor position to the penultimate
character matched by the pattern. The syntax is
<kbd>/<var>pattern</var></kbd>: a solidus followed by a regular
expression. For example, <kbd>d/\d</kbd> deletes from the current character to
the first digit, excluding the digit itself.

0 comments on commit 07afba0

Please sign in to comment.