vim help and netrw

12 views
Skip to first unread message

Charles Campbell

unread,
May 11, 2021, 9:52:35 PM5/11/21
to vim...@googlegroups.com
Hello:

I have a tester for netrw which I was using to try to verify netrw
before it gets sent out.

Its failing at an odd place; it issues a <F1> key to obtain help. When I
run the test with just the one script, the help shows 18 lines, a
separator, 3 lines from the file, and a separator; the file shown is
where I launched the help request. However, sometimes it shows 20 lines
- separator - 1 line - separator, sometimes 19 lines - separator - 2
lines - separator. Vim didn't used to be so mercurial about how many
lines of help it showed. Is there an option now that I can set to tell
vim how many lines of help I want shown?

FYI: the <F1> key mapping to help:

nnoremap <buffer> <F1>            :he netrw-quickhelp<cr>

I don't want to change that mapping as its part of netrw.

Chip Campbell

Bram Moolenaar

unread,
May 13, 2021, 12:33:55 PM5/13/21
to vim...@googlegroups.com, Charles Campbell
There is the 'helpheight' option, it specifies the minimal height.

There was no recent change in how the height of the help window is
computed. Did you start Vim with "--clean" to avoid any scripts or
autocommands interfering?

--
Women are probably the main cause of free software starvation.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages