On Jan 20, 11:27 pm, Tim Chase <[email protected]> wrote:
> On 01/20/2011 03:54 PM, rameo wrote:
>
> > Can anyone tell me if it is possible to create a variable on
> > the fly?
>
> Sounds like you might be reaching for
>
>    :help curly-brace-names
>
> which allows you to do things like
>
>    :let varname='foo'
>    :let {varname}=42
>    :echo foo  " prints 42
>
> -tim

Thank you very much!
That resolved my problem.

------------------------------------------------------------------

Is there a maximum number in vim?
just noted that vim gives a wrong output
when I do this multiplication:

      let w = 2*123456*10000
      echo w
output --> -1825847296


      let t = 1*123456*100000
      echo t
output --> -539301888

------------------------------------------------------------------

I still have one more little question:
if strlen(var) == 6
let r = '      '   (6 spaces)
is there an easier way to insert spaces p.e.
let r = 6a"SPACE"<ESC>

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

Reply via email to