# HG changeset patch # User Steve Losh # Date 1339878345 14400 # Node ID 7a638cd48d4895b9d6bfe6b5a0c33c80d4bbd634 # Parent beb0d41a8929437428c887821d595a1b1f1dc629 fix discussion of buffer-local mappings fixes #21 diff -r beb0d41a8929 -r 7a638cd48d48 chapters/11.markdown --- a/chapters/11.markdown Sat Jun 16 16:21:37 2012 -0400 +++ b/chapters/11.markdown Sat Jun 16 16:25:45 2012 -0400 @@ -32,11 +32,16 @@ Now for the twist: while still in file `bar` type `x`. -Nothing happened! +Instead of deleting the entire line, Vim just deleted a single character! +What happened? The `` in the second `nnoremap` command told Vim to only consider that mapping when we're in the same buffer as where we defined it. +When you typed `x` in file `bar` Vim couldn't find a mapping that +matched it, so it treated it as two commands: `` (which does nothing on +its own) and `x` (the normal command to delete a single character.) + Local Leader ------------