use - instead of \ in the basic mapping chapter
fixes #15
author |
Steve Losh <steve@stevelosh.com> |
date |
Sat, 16 Jun 2012 16:21:37 -0400 |
parents |
ea55cbb8a952
|
children |
7a638cd48d48
|
branches/tags |
(none) |
files |
chapters/03.markdown |
Changes
--- a/chapters/03.markdown Sat Jun 16 16:19:20 2012 -0400
+++ b/chapters/03.markdown Sat Jun 16 16:21:37 2012 -0400
@@ -11,18 +11,18 @@
Type a few lines of text into a file, then run:
:::vim
- :map \ x
+ :map - x
-Put your cursor somewhere in the text and press `\`. Notice how Vim deleted the
+Put your cursor somewhere in the text and press `-`. Notice how Vim deleted the
character under the cursor, just like if you had pressed `x`.
We already have a key for "delete that character under the cursor", so let's
change that mapping to something slightly more useful. Run this command:
:::vim
- :map \ dd
+ :map - dd
-Now put your cursor on a line somewhere and press `\` again. This time Vim
+Now put your cursor on a line somewhere and press `-` again. This time Vim
deletes the entire line, because that's what `dd` does.
Special Characters