On Mi, 22 Dez 2010, niva wrote:
> 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.10 0.11 0.12 0.13
>
> How can I replace easily thoses numbers by sinus value
:%s/\d\.\d\+/\=sin(str2float(submatch(0)))/g
This needs a vim with floating point and eval support builtin. Check
your :version output for '+float' and '+eval' (if the prefix is '-',
there is no support available in your vim version and you need another
version).
regards,
Christian
--
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