Tuesday, December 1, 2009

Re: :let and :set with whitespaces

Aarto Matti wrote:
> Hi,
>
> I can freely use whitespaces with let command, both "let my_var = 1" and
> "let my_var=1" are equal correct, but something like "set tabstop = 4" is
> impossible. Any reason why there are such restrictions in VimL?

Aarto,
You can use arbitrary expressions on the rhs if you use the let-&
syntax: e.g.,

let &tabstop = 2 + 2

:help let-&

Brett Stahlman

>

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

No comments:

Post a Comment