# HG changeset patch # User Steve Losh # Date 1335098191 -3600 # Node ID c1302fc8b9d0f2b650c91df000a58fd6f7e0aab3 # Parent c3b3b48d8f513d7561e07cada6ed7cc90e1d79df# Parent ac15261ccd97335682de81a0a45b9f0a9a05413c Merge. diff -r c3b3b48d8f51 -r c1302fc8b9d0 chapters/51.markdown --- a/chapters/51.markdown Sun Apr 22 13:33:01 2012 +0100 +++ b/chapters/51.markdown Sun Apr 22 13:36:31 2012 +0100 @@ -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.