# HG changeset patch # User Steve Losh # Date 1319599442 14400 # Node ID 44918d574627f9ac69106316f1340c4336bb238f # Parent 745eafc91857af43818d14f839c93bfa669dda5a Derp. diff -r 745eafc91857 -r 44918d574627 chapters/32.markdown --- a/chapters/32.markdown Tue Oct 25 23:21:53 2011 -0400 +++ b/chapters/32.markdown Tue Oct 25 23:24:02 2011 -0400 @@ -148,7 +148,7 @@ window with the results, but we haven't opened it yet. Run the following command: - :nnoremap G :execute "grep! -R " . shellescape("") . " .":copen + :nnoremap g :execute "grep! -R " . shellescape("") . " .":copen Now try the mapping and you'll see that Vim automatically opens the quickfix window with the search results. All we did was tack `:copen` onto the end @@ -157,7 +157,7 @@ As the finishing touch we'll remove all the grep output Vim displays while searching. Run the following command: - :nnoremap G :silent execute "grep! -R " . shellescape("") . " .":copen + :nnoremap g :silent execute "grep! -R " . shellescape("") . " .":copen We're done, so try it out and admire your hard work! The `silent` command just runs the command that follows it while hiding any messages it would normally