Tuesday, April 18, 2017

Re: width of help text on a small device

2017-04-18 20:51 GMT+03:00 <tuxic@posteo.de>:
> Hi,
>
> on my 7" tablet (Android) I installed a chrooted Linux on which
> in turn I installed vim (*not* gvim. *not* neovim. "vim" != "gvim" != "neovim".
> The console version. The only one called simply "vim").
>
> Unfortunately the tablet is not that wide.
>
> With readable sized characters the width is not wide enough to display
> the help pages in full width. Each line is either wrapped (looks
> awfull and destroys any table and such) or you have to scroll back
> and forth each line.
>
> Is there a way to initially -- for example when doing "helptags" --
> re-arrange the help pages to smaller sized widths?
> How?
>
> Thanks a lot for any help in advance!
> Cheers
> Meino

The help files in question are simple text files with some constructs
which have special meaning. Unlike e.g. ReST-based files which are
parsed into an AST and then converted into something else Vim help has
no structure, only plain text written in a manner "looks like
surrounding text + looks good for me + has (references to) tags where
needed", so there is basically no way to automatically reformat Vim
help files and guarantee any good results. For the same reason all vim
help to HTML converters yield result which looks like in a editor -
and will have exactly the same problem if you try to view them in the
browser.

You may try setting &textwidth to something small enough and use `gq`,
but to have nicely looking results you cannot do this automatically.
And that will help you only in plain paragraphs: some tabs/spaces used
to right-align some text or a table and you are doomed and need to do
the thing manually without even `gq`.

>
>
> --
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.

--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments: