GoldenView.Vim icon indicating copy to clipboard operation
GoldenView.Vim copied to clipboard

Error when opening Vim

Open lauritzsh opened this issue 9 years ago • 2 comments

Hi, whenever I'm opening Vim I'm getting an error related to GoldenView.

Error detected while processing function GoldenView#EnableAutoResize..GoldenView#Init:
line    5:
E806: using Float as a String
E15: Invalid expression: 1.618
Error detected while processing function GoldenView#EnableAutoResize..<SNR>35_set_focus_window..<SNR>35_eval..GoldenView#TextWidth..GoldenView#GoldenWidth:
line    1:
E121: Undefined variable: s:goldenview__golden_ratio
E116: Invalid arguments for function float2nr(&columns / s:goldenview__golden_ratio)
E15: Invalid expression: float2nr(&columns / s:goldenview__golden_ratio)
Error detected while processing /Users/Lauritz/Developer/dotfiles/vim/bundle/GoldenView.Vim/plugin/GoldenView.vim:
line  149:
E171: Missing :endif
Press ENTER or type command to continue

Any idea what this might be? Feels like it came out of the blue and I don't have the same problem on my other computer. I tried removing all bundles/plugins and re-installing them but didn't help. I'm using Vundle to install Vim plugins.

lauritzsh avatar May 11 '15 14:05 lauritzsh

Same problem, helped changing terminal. The same version with the same plugins working without problem on different terminal application.

--- update seems that all problems come from LC_NUMERIC, some locales use comma as float separator.

TKr avatar Feb 01 '16 10:02 TKr

I've done PR https://github.com/zhaocai/GoldenView.Vim/pull/25 for this issue.

TKr avatar Feb 04 '16 11:02 TKr