zhaocai / GoldenView.Vim

Always have a nice view for vim split windows!
http://zhaocai.github.io/GoldenView.Vim/
219 stars 14 forks source link

E806: using Float as a String #4

Closed Bost closed 11 years ago

Bost commented 11 years ago

Right after starting gvim when I press <C-l> I get:

Error detected while processing /home/bost/dev/dotfiles/vim/bundle/GoldenView.Vim/autoload/GoldenView/zl/window.vim: line 72: E806: using Float as a String E15: Invalid expression: 1.618 Error detected while processing function GoldenView#Split..GoldenView#zl#window#split_nicely..GoldenView#zl#window#nicely_split_cmd: line 15: E121: Undefined variable: s:golden_ratio E15: Invalid expression: ww > &columns / s:golden_ratio

zhaocai commented 11 years ago

can you do :echo winwidth(0) > &columns / 1.618 without error?

Bost commented 11 years ago

On 20 April 2013 16:29, Zhao Cai notifications@github.com wrote:

can you do :echo winwidth(0) > &columns / 1.618 without error?

No I can't. I get:

E806: using Float as a String E15: Invalid expression: winwidth(0) > &columns / 1.618

zhaocai commented 11 years ago

probably your vim does not have +float support. you might need to update your vim.

try :echo has('float')

Bost commented 11 years ago

yea thx! seems like not it works!