sjl/learnvimscriptthehardway — pull request #34 by mgrubb (2012-04-26 21:35:13+00:00)
Title: Add expand() to shellescape() example

I had to use the `expand()` function to get the `shellescape()` examples to work properly.
So when I used the mapping:
`:nnoremap g :execute "grep -R " . shellescape("") . " ."`

And I execute the mapping over the word `That's` the command gets expanded to:
`!grep -R 'That's' ...`

And hangs until I break out of it (because the shell is looking for another ')
When I add expand() to the definition it works as intended:
`:nnoremap g :execute "grep -R " . shellescape(expand("")) . " ."`

The command gets expanded to:
`!grep -R 'That\''s' ...`

Which executes as expected and doesn't hang.