Tuesday, October 30, 2012

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

On Tue, Oct 30, 2012 at 9:27 PM, Ben Fritz <fritzophrenic@gmail.com> wrote:
> Any of the [gvslawtb]: prefixed variables define the scope of the variable, as follows:
>
> g: global variable, accessible anywhere
> v: special variable predefined by Vim only useful in certain contexts, see the help entry for that variable
> s: script-local variable, accessible anywhere within a given script file
> l: function-local variable, only accessible with the defining function
> a: function argument
> w: window-local variable, global variable but with a separate copy for every single window
> t: tab-local variable, global variable but with a separate copy for each tab page
> b: buffer-local variable, global variable but with a separate copy for each buffer
>

Great, thank you!

--
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:

Post a Comment