On 2021-01-02 06:47, L A Walsh wrote:
> trunc(min(3,1+log(1+line('$'))/log(10)))
>
> but I get E118: Too many arguments for function: min.
min() expects a single list-like argument so try
trunc(min([3,1+log(1+line('$'))/log(10)]))
which creates a list-literal with "3" as the first item and your 1+…
as the second element.
-tim
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20210102085725.3c7bc956%40bigbox.attlocal.net.
Saturday, January 2, 2021
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment