c1302fc8b9d0
Merge.
author | Steve Losh <steve@stevelosh.com> |
---|---|
date | Sun, 22 Apr 2012 13:36:31 +0100 |
parents | c3b3b48d8f51 (current diff) ac15261ccd97 (diff) |
children | 17ece76ba98a |
branches/tags | (none) |
files |
Changes
--- 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.