Monday, January 4, 2021

Re: why doesn't min take more than 1 parameter?

On 2021-01-04 14:14, L A Walsh wrote:
> On 2021/01/02 08:01, Tim Chase wrote:
> > though a lot of vim stuff takes inspiration from
> > Python ...
> >
> I think vim was around before python.

Both were originally released in 1991. However, some of the
vim-script language features like list-initializers and
dictionary-initializers and negative list-indexing came into vim long
after Python had them and they draw pretty strong syntactic influence
thence.

> vim would have drawn from 'vi' and, earlier, 'ed',

Indeed, vim does find its roots in vi(1) which in turn is the visual
mode of ex(1) which shares concepts with ed(1). (and if you are on
Twitter or Mastodon and enjoy ed(1), feel free to check out my
@ed1conf and @ed1conf@bsd.network alter-ego accounts)

> Hey, do you know how to determine the number of columns taken up by
> fdc? Doesn't seem I can use fdc directly as a number though.

As Dr. Chip mentions, prefix the setting-name with an "&"

:echo 'The value of foldcolumn is set to '.&fdc

should do the trick.

-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/20210104190149.6e2bd9c7%40bigbox.attlocal.net.

No comments: