7a638cd48d48

fix discussion of buffer-local mappings

fixes #21
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 16 Jun 2012 16:25:45 -0400
parents beb0d41a8929
children ba2b338cf6d5 ac0cc7bd738f d133d7456776 883206297dc1 7a30f287900b 5d5ce69f0944
branches/tags (none)
files chapters/11.markdown

Changes

--- 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 `<leader>x`.
 
-Nothing happened!
+Instead of deleting the entire line, Vim just deleted a single character!
+What happened?
 
 The `<buffer>` 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 `<leader>x` in file `bar` Vim couldn't find a mapping that
+matched it, so it treated it as two commands: `<leader>` (which does nothing on
+its own) and `x` (the normal command to delete a single character.)
+
 Local Leader
 ------------