Eduardo Lopez avatar Eduardo Lopez committed 501a4a2

Bind a global variable with let instead of set

Comments (0)

Files changed (1)

chapters/52.markdown

 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
         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:
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.