Bind a global variable with let instead of set
author |
Eduardo Lopez Biagi <eduardo.biagi@gmail.com> |
date |
Sun, 30 Dec 2012 09:48:17 -0600 |
parents |
0e78ce34b11d
|
children |
85ea6213b42a
|
branches/tags |
(none) |
files |
chapters/52.markdown |
Changes
--- a/chapters/52.markdown Mon Nov 19 19:01:14 2012 -0500
+++ b/chapters/52.markdown Sun Dec 30 09:48:17 2012 -0600
@@ -33,7 +33,7 @@
if that variable isn't already set. We've seen this kind of check before.
This will allow users to override it if `potion` isn't in their `$PATH` by
-putting a line like `set g:potion_command = "/Users/sjl/src/potion/potion"` in
+putting a line like `let g:potion_command = "/Users/sjl/src/potion/potion"` in
their `~/.vimrc` file.
The last line adds a buffer-local mapping that calls a function we've defined
@@ -270,7 +270,7 @@
call append(0, split(bytecode, '\v\n'))
endfunction
-The `append()` Vim function take two arguments: a line number to append after,
+The `append()` Vim function takes two arguments: a line number to append after,
and a list of Strings to append as lines. For example, try running the
following command: