Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E806: using Float as a String in gvim (vim-bug, workaround suggested) #10

Closed
voidus opened this issue Feb 21, 2011 · 1 comment
Closed

Comments

@voidus
Copy link
Contributor

voidus commented Feb 21, 2011

Hi,

I using your plugin with vim 7.3.102 (Gentoo version, but that is not really relevant)

In some version of vim-7.2, there was a bug with floating points (see http://vim.1045645.n5.nabble.com/patch-fixed-bug-floating-point-numbers-cannot-be-used-as-arguments-in-GVIM-lang-td1203961.html) which seems to have surfaced again in my version.

As a workaround, you could use ' / str2float("100.0")' instead of ' / 100.0'.
This works for me, and I suppose it works for the 7.2 versions that have this bug, too.

@nathanaelkane
Copy link
Collaborator

Merge branch 'master' of https://github.com/voidus/vim-indent-guides into voidus-master

graywh pushed a commit to graywh/vim-indent-guides that referenced this issue May 18, 2012
This is used to work around a vim bug throwing E806: using Float as String in
some Situations.
graywh pushed a commit to graywh/vim-indent-guides that referenced this issue May 18, 2012
…into voidus-master

* 'master' of https://github.com/voidus/vim-indent-guides:
  Use str2float instead of plain floats. Fixes preservim#10
dmouraneto added a commit to dmouraneto/vimwiki that referenced this issue Oct 22, 2020
Some languages uses comma instead of dot for decimal separator.
When loading vimwiki the following error was occuring
E806: using Float as a String
This is probably a bug in vim, as a workaround when using float can be
str2float.
Similar issue in another project
preservim/vim-indent-guides#10
tinmarino pushed a commit to vimwiki/vimwiki that referenced this issue Oct 22, 2020
Some languages uses comma instead of dot for decimal separator.
When loading vimwiki the following error was occuring
E806: using Float as a String
This is probably a bug in vim, as a workaround when using float can be
str2float.
Similar issue in another project
preservim/vim-indent-guides#10
deepredsky pushed a commit to deepredsky/vimwiki that referenced this issue Jan 16, 2021
Some languages uses comma instead of dot for decimal separator.
When loading vimwiki the following error was occuring
E806: using Float as a String
This is probably a bug in vim, as a workaround when using float can be
str2float.
Similar issue in another project
preservim/vim-indent-guides#10
jls83 pushed a commit to jls83/vimwiki that referenced this issue Jan 17, 2023
Some languages uses comma instead of dot for decimal separator.
When loading vimwiki the following error was occuring
E806: using Float as a String
This is probably a bug in vim, as a workaround when using float can be
str2float.
Similar issue in another project
preservim/vim-indent-guides#10
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants