Wednesday, November 30, 2011

Re: expression register as calculator with floats?



On Wed, Nov 30, 2011 at 9:11 AM, pauli baadsager <pauli.baadsager@gmail.com> wrote:
On Nov 30, 11:37 am, pauli baadsager <pauli.baadsa...@gmail.com>
wrote:
> On Nov 30, 3:46 am, Tim Chase <v...@tim.thechases.com> wrote:
>
> > On 11/29/11 20:40, Ben Fritz wrote:
>
> > > Starting at Vim 7.3, this also works with floating-point
> > > math.
>
> > Just as an aside, that should read "Vim 7.2" as detailed at
>
> >   :help version-7.2
>
> > (which happens to be what I'm running on my Debian box, and
> > floats work fine there as the OP described).
>
> > -tim
>
> Thanks. I found it working in both Vim 7.2 and 7.3; but not in GVim
> 7.3 or 7.2. Does anyone have clue how to make it work in gvim?
> It works in Vim 7.2, I type ctrl-r = 4.0/12.0 and get 0.333333
> It doesn't work in GVim 7.2 (or 7.3), I type ctrl-r = 4.0/12.0 and get
> E806: using Float as a String
>
> / Pauli

Now it works in my GVim as well, the problem turned out to be some
locale settings. I changed system language from en_DK to en_GB and now
the expression calculator works with floats in gvim. Nice! Thanks.
/ Pauli
Do you mean $LANG in linux? I have got the same issue with pt_BR.UTF8 :/
 

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

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