> > *local-variable* *l:var* > Inside functions local variables are accessed without prepending anything. > But you can also prepend "l:" if you like. However, without prepending "l:" > you may run into reserved variable names. For example "count". By itself it > refers to "v:count". Using "l:count" you can have a local variable with the > same name.
I tend to agree with Thilo that prefixing locals with l: is mandatory for defensive coding. I actually used names like 'lnum', and I had problems before forgetting to declare variables in the indent script. Combine it and you hit variables with wider scipe. Every abbreviated name seems to already have a meaning anyway For readability I don't like it very much. I would prefer having to prefix everything else with s:, v: whatever and keep the locals clean so one can focus on the algorithm. The updated script can be found at the link from the earlier posts. Erik. -- You received this message from the "vim_dev" 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