Tuesday, October 30, 2012

What do I need to read to understand g: and s: VIM variable prefixes?

What do I need to read to understand g: and s: VIM variable prefixes?
This one is hard to guess for the built in help, and Google isn't
helping.

The root of the issue is trying to figure out why g:someVariable can
be seen in SomeFunction() but cannot be seen in s:AnotherFunction().
What is the s: for that precedes the second function's name, and why
does it change scope (s for scope, perhaps)? Thanks.

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: