| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
This option allows restoring the behaviour prior to #9023.
Fixes #9583
Closes #9633
|
|
|
|
|
|
|
|
| |
man#init_pager() guesses the ref by the heading, which is usually
uppercase, so we don't know the correct casing. But lowercase is more
common, so use that for the buffer name instead of uppercase.
ref #9156
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before this commit, man#init_pager() always tries to scrape the manpage
name and set the buffer name. That's much less important than avoiding
duplicate buffers and E95. And it doesn't seem to be necessary, usually.
Steps to reproduce:
$ export MANPAGER="nvim -c 'set ft=man' -"
$ man sleep
:Man sleep
Error detected while processing function man#init_pager:
line 15:
E95: Buffer with this name already exists
:ls!
1 h- "man://SLEEP(1)" line 4
2 %a- "man://sleep(1)" line 1
|
|
|
|
|
|
|
|
| |
On some systems, mandoc disallows $MANWIDTH greater than 1000.
E.g. FreeBSD:
https://github.com/freebsd/freebsd/blob/b7d613ae8a2fc1530d33aff53a1a678d284bfeec/contrib/mandoc/manpath.c#L312
closes #9065
|
|
|
|
| |
fixes #9057
|
|
|
|
|
|
|
|
|
|
|
| |
When nroff justifies a line, it fills the line with whitespace to meet
$MANWIDTH. With $MANWIDTH=9999, that of course results in nonsense (and
behaves poorly with 'cursorline' option).
To work around that, instead of trying to hard-justify the lines, just
replace the mega-whitespace with a fixed size of 10 spaces.
Perhaps N/Vim needs a "soft justify" feature?
|
|
|
|
|
| |
fix #9017
close #9023
|
|
|
|
|
|
| |
Some plugins attempt to reload autoloaded scripts.
Use a guard to prevent this.
fix #8939
|
|
|
|
|
| |
When giving a section, the first candidate selection was not performed.
followup/fixup #8341
|
|
|
|
| |
ref #8372
|
|
|
|
|
|
|
|
|
| |
OpenBSD's man returns all candidates when searching with -w instead of
the first one it finds. So this patch takes the first one if multiple
entries are found.
closes #8372
closes #8341
|
|
|
|
|
|
|
|
|
|
|
| |
The argument expansion for :Man depends on the number of arguments given to it
starting at the command itself. But user completion functions always provide the
entire command-line which can include modifier commands like :tab, :vert, etc.
leading to a wrong number of arguments.
Prune all arguments up to :Man.
Fixes #7872.
|
|\ |
|
| | |
|
| | |
|
| | |
|
| | |
|
|/
|
| |
Closes #7772
|
|
|
|
|
| |
Different implementations of `man` might be using different
flags for sections.
|
| |
|
|
|
|
|
|
|
| |
Use the -l flag to open a man file.
TODO: Does not work on SunOS.
Fixes #6683
|
| |
|
|
|
|
|
| |
The comment is incorrect, s:error does need to be called. I thought the
call was unnecessary because it didn't show any message for me but I had
shortmess+=F which was hiding the message.
|
|
|
|
|
|
| |
We only need to ignore BufReadCmd (from runtime/plugin/man.vim).
Closes #6144
|
|
|
|
|
|
|
| |
Closes #6039
Also: close the window if we could not get the page from man but only if
we opened it ourselves.
|
|
|
| |
This will ensure that $MANWIDTH is correctly set.
|
|
|
| |
This will make man.vim work on nixOS.
|
| |
|
| |
|
|
|
|
| |
Instead, a note was added to `:h man.vim` on how 'fileignorecase'
controls the case sensitivity of completion.
|
|
|
|
|
|
| |
- Improves compatibility with shell=tcsh.
- man.vim: split read_page into get_page, put_page. Do not split the
window until we know there is going to be output.
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #5574
|
|
|
|
| |
Fixes #5628
|
| |
|
|
|
|
|
|
| |
- :Man with no arguments opens the manapage for the
<cWORD> (man buffers) or <cword> (non-man buffers).
- remove now irrelevent comment about -P flag
|
|
|
|
| |
Use system() instead of :read to avoid a hard redraw.
|
|
|
|
|
|
|
|
|
|
|
| |
- fix synopsis highlighting in other locales. Cannot always rely on the first
line for the section in some locales; instead, use the file path and
explicitly set b:man_sect to the actual section.
- eliminate separate s:man_args function
- simplify logic: do not reuse buffer content
- introduce b:man_default_sects Fixes #5233
- introduce <Plug>(man_vsplit), <Plug>(man_tab)
- simplify regexps
|
|\ |
|
| |
| |
| |
| |
| | |
The commit that added support for modifiers regressed #5168
causing #5172. This commit fixes it again.
|
| |
| |
| |
| | |
Addresses problem one in #5240
|
| |
| |
| |
| |
| |
| | |
This is necessary incase the buffer was previously opened in a different
tab, in which the window options there do not carry over. It is not
explicitly documented in ':help local-options' but that is how it works.
|
|/
|
|
| |
Closes #5235
|
|
|
|
|
| |
Regression from #5168. Also changed the Man command's nargs to '+' so
that man#open_page does not need to handle 0 arguments, because that
will never occur.
|
|
|
| |
Fixes #5181
|
|
|
|
|
|
| |
- man#open_page_command and man#open_page_mapping are now a single
function
- New autocmd to fix #5172
|
|
|
|
| |
- Also some small improvements in other parts.
|
|
|
|
| |
s:error: Convention is to highlight the entire message, so stick to that.
|