Sunday, November 4, 2012

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

On Thu, Nov 1, 2012 at 9:09 AM, Tony Mechelynck
<antoine.mechelynck@gmail.com> wrote:
> In Vimscript, an interpreted language, there are no "declarations": any
> command needs to be "executed" in order to have an effect. It is when flow
> control goes through the :au, :map, :abbrev, :function or :command command,
> for instance, that the autocommand, mapping, abbreviation, function
> definition or user-command definition are stored in interpreter memory;
> before that, Vim doesn't "know" anything about them. Similarly, the type of
> a variable is set by the latest :let command affecting that variable, you
> cannot "declare" a variable except by giving that variable a value (possibly
> an empty value such as "", [] or {}).
>

I realize that. I just stated that Vimscript is different than other
environments that I am familiar with, and that it was good of you to
point out an important difference.

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