# HG changeset patch # User Jason Ribeiro # Date 1334704407 14400 # Node ID ac15261ccd97335682de81a0a45b9f0a9a05413c # Parent ee7e65e9658e25af8affe00eb58d087e8e55dd4f Two typos. diff -r ee7e65e9658e -r ac15261ccd97 chapters/51.markdown --- a/chapters/51.markdown Sun Apr 08 15:34:54 2012 -0400 +++ b/chapters/51.markdown Tue Apr 17 19:13:27 2012 -0400 @@ -87,7 +87,7 @@ mappings will call. You'll see this strategy in a lot of Vim plugins that create a number of similar -mappings. It's easier to read and maintain then stuffing all the functionality +mappings. It's easier to read and maintain than stuffing all the functionality in to a bunch of mapping lines. Change the `sections.vim` file to contain this: @@ -298,7 +298,7 @@ execute 'silent normal! ' . dir . pattern . dir . flags . "\r" endfunction -Two things have changed. First, the function takes an extra argument so it know +Two things have changed. First, the function takes an extra argument so it knows whether it's being called from visual mode or not. Second, if it's called from visual mode we run `gv` to restore the visual selection.