wilson.m.liu wrote:
> I wonder if there is any serious problem if I kept declaring
> variables using "let expression" and do not release them
> using "unlet".

Local variables do not need 'unlet'. So, if you have 'let x=12'
in a function, you do not need 'unlet x'.

Global and script variables stay while Vim is running, and
certain global variables may be saved, :help 'viminfo'

So if you want to recover memory, you could unlet such
variables. Usually there is absolutely no point unless you
happen to know that, say, a global variable is holding a
megabyte of data that is no longer needed.

Sometimes you might unlet a variable so that a subsequent step
will detect that it is not defined, and will do some
initialisation.

John


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to