Tuesday, March 03, 2020

Re: man to render pure text? (or a pipe in vi macros ?)

hello Ingo,

> :map K yw:E /tmp/vi.keyword.$$p!!xargs man <ENTER>
>
> i get:
>
> Error detected while processing function
> line 30:
> E132: Function call depth is higher than 'maxfuncdepth'
> Press ENTER or type command to continue

it's a bug in the :E command, i reported it there:

https://github.com/vim/vim/issues/5723

thank you for spotting it.

> Also, the patch that would be required is very small and straightforward.

indeed. you made me like reading C code.

> So, what do people think? Should i test the patch below in more
> depth and commit it? Or do people consider this bloat?

i'm very naive about performance things but: as you add a condition in a loop
that is used while reading the input, it will be a little bit slower.
which means penality for everyone to avoid using a very simple pipe on
rare cases. so i finally think it's not worth ... col -b is an elegant
solution.

regards
marc

No comments:

Post a Comment