# HG changeset patch # User Steve Losh # Date 1339878097 14400 # Node ID beb0d41a8929437428c887821d595a1b1f1dc629 # Parent ea55cbb8a95264b73b07fa7cfad4bd7e45070498 use - instead of \ in the basic mapping chapter fixes #15 diff -r ea55cbb8a952 -r beb0d41a8929 chapters/03.markdown --- 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