still have a lot of troubles with "."and ","

My new command to include numbers with dots is:

%s/\d\+\.*\d*,\d\+/\=printf("%.1f", str2float(substitute(submatch(0),
',', '.', '')))/g

but it still does
convert 15.000,56 to 15 and not 15.001

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

Reply via email to