<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/runtime/plugin/man.vim, branch floattitle</title>
<subtitle>Neovim fork with Rahm's personal hacks.</subtitle>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/'/>
<entry>
<title>feat(Man): port to Lua (#19912)</title>
<updated>2022-09-02T14:20:29+00:00</updated>
<author>
<name>Lewis Russell</name>
<email>lewis6991@gmail.com</email>
</author>
<published>2022-09-02T14:20:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=2afcdbd63a5b0cbeaad9d83b096a3af5201c67a9'/>
<id>2afcdbd63a5b0cbeaad9d83b096a3af5201c67a9</id>
<content type='text'>
Co-authored-by: zeertzjq &lt;zeertzjq@outlook.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: zeertzjq &lt;zeertzjq@outlook.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>fix(man.vim): use -addr=other instead of -range=-1 #15172</title>
<updated>2021-08-26T11:36:31+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2021-08-26T11:36:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=6ff1e3fa1f6c88e8a8ce4e2e5a017bea8b5e381e'/>
<id>6ff1e3fa1f6c88e8a8ce4e2e5a017bea8b5e381e</id>
<content type='text'>
-range=-1 requires the current file to have at least &lt;count&gt; lines, whereas -addr=other doesn't.

-addr=other also sets &lt;count&gt; to -1 by default when it is not specified, though this feature seems undocumented.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
-range=-1 requires the current file to have at least &lt;count&gt; lines, whereas -addr=other doesn't.

-addr=other also sets &lt;count&gt; to -1 by default when it is not specified, though this feature seems undocumented.</pre>
</div>
</content>
</entry>
<entry>
<title>fix(man.vim): filetype=man is too eager #15488</title>
<updated>2021-08-26T09:19:52+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2021-08-26T09:19:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=2548a9e18037339c4c502d971bdeaf909b82a739'/>
<id>2548a9e18037339c4c502d971bdeaf909b82a739</id>
<content type='text'>
Problem:
"set filetype=man" assumes the user wants :Man features, this does extra
stuff like renaming the buffer as "man://".

Solution:
- old entrypoint was ":set filetype=man", but this is too presumptuous #15487
- make the entrypoints more explicit:
  1. when the ":Man" command is run
  2. when a "man://" buffer is opened
- remove the tricky b:man_sect checks in ftplugin/man.vim and syntax/man.vim
- MANPAGER is supported via ":Man!", as documented.

fixes #15487</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:
"set filetype=man" assumes the user wants :Man features, this does extra
stuff like renaming the buffer as "man://".

Solution:
- old entrypoint was ":set filetype=man", but this is too presumptuous #15487
- make the entrypoints more explicit:
  1. when the ":Man" command is run
  2. when a "man://" buffer is opened
- remove the tricky b:man_sect checks in ftplugin/man.vim and syntax/man.vim
- MANPAGER is supported via ":Man!", as documented.

fixes #15487</pre>
</div>
</content>
</entry>
<entry>
<title>runtime: Fix man.vim count handling.</title>
<updated>2020-11-29T23:56:15+00:00</updated>
<author>
<name>Edwin Pujols</name>
<email>edwin.pujols5@outlook.com</email>
</author>
<published>2020-11-29T23:56:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=ba2e94d223d6cf4bd2594f6f2b2bfeb2aaa29368'/>
<id>ba2e94d223d6cf4bd2594f6f2b2bfeb2aaa29368</id>
<content type='text'>
Here I use a negative number to decide whether the count has been
explicitly set. I think it unlikely that negative sections will ever be
created given that negative numbers complicate argument handling:
```
$ man -1 foo
man: invalid option -- '1'
```
and given that there's already precedence for alphanumeric sections like
`3p`, `3x`, `n`, etc.

---

This does work, though:
```
$ man -S -3 baz
```
With `man baz.-3` and `man 'baz(-3)'`, (GNU) man *might* consider `-3`
internally as a section, but in the end reports as if the whole
argument was the name of a topic:
```
$ man 'baz(-3)'
No manual entry for baz(-3)
```

---

Closes #13411.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Here I use a negative number to decide whether the count has been
explicitly set. I think it unlikely that negative sections will ever be
created given that negative numbers complicate argument handling:
```
$ man -1 foo
man: invalid option -- '1'
```
and given that there's already precedence for alphanumeric sections like
`3p`, `3x`, `n`, etc.

---

This does work, though:
```
$ man -S -3 baz
```
With `man baz.-3` and `man 'baz(-3)'`, (GNU) man *might* consider `-3`
internally as a section, but in the end reports as if the whole
argument was the name of a topic:
```
$ man 'baz(-3)'
No manual entry for baz(-3)
```

---

Closes #13411.
</pre>
</div>
</content>
</entry>
<entry>
<title>man.vim: Update maintainer email</title>
<updated>2019-11-25T01:31:46+00:00</updated>
<author>
<name>Anmol Sethi</name>
<email>hi@nhooyr.io</email>
</author>
<published>2019-11-25T01:10:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=afaa0626430ba0150729a088234698de85174ce6'/>
<id>afaa0626430ba0150729a088234698de85174ce6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>man.vim: :Man! operates on buffer contents (#9139)</title>
<updated>2018-10-21T15:38:25+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2018-10-21T15:38:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=f895b47d3f935b74ed982b06a73a7265cf06e960'/>
<id>f895b47d3f935b74ed982b06a73a7265cf06e960</id>
<content type='text'>
mandoc may not handle quoted MANPAGER arguments correctly. E.g. with
    export MANPAGER='nvim -u NORC -c "set ft=man"'
mandoc treats `"set` and `ft=man"'` as separate tokens.

To workaround that, provide :Man! so that MANPAGER can avoid quoting.

closes #9120</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
mandoc may not handle quoted MANPAGER arguments correctly. E.g. with
    export MANPAGER='nvim -u NORC -c "set ft=man"'
mandoc treats `"set` and `ft=man"'` as separate tokens.

To workaround that, provide :Man! so that MANPAGER can avoid quoting.

closes #9120</pre>
</div>
</content>
</entry>
<entry>
<title>man.vim: allow other ex-commands after :Man</title>
<updated>2017-11-06T00:56:04+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2017-10-23T20:57:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=5d2af7e45200c1e3337624449fe2be0906d1c7cf'/>
<id>5d2af7e45200c1e3337624449fe2be0906d1c7cf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[RFC] man.vim: remove &lt;Plug&gt; mappings (#5290)</title>
<updated>2016-09-04T01:53:58+00:00</updated>
<author>
<name>Anmol Sethi</name>
<email>nhooyr@users.noreply.github.com</email>
</author>
<published>2016-09-04T01:53:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=9bba8ba372298d7cfac543085df6546e18d2c256'/>
<id>9bba8ba372298d7cfac543085df6546e18d2c256</id>
<content type='text'>
- :Man with no arguments opens the manapage for the
  &lt;cWORD&gt; (man buffers) or &lt;cword&gt; (non-man buffers).
- remove now irrelevent comment about -P flag
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- :Man with no arguments opens the manapage for the
  &lt;cWORD&gt; (man buffers) or &lt;cword&gt; (non-man buffers).
- remove now irrelevent comment about -P flag
</pre>
</div>
</content>
</entry>
<entry>
<title>man.vim #5249</title>
<updated>2016-09-03T16:57:41+00:00</updated>
<author>
<name>Anmol Sethi</name>
<email>anmol@aubble.com</email>
</author>
<published>2016-08-24T15:56:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=f8fc8f51c0db0137a696f65a8ba75c89c1012119'/>
<id>f8fc8f51c0db0137a696f65a8ba75c89c1012119</id>
<content type='text'>
- 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 &lt;Plug&gt;(man_vsplit), &lt;Plug&gt;(man_tab)
- simplify regexps
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- 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 &lt;Plug&gt;(man_vsplit), &lt;Plug&gt;(man_tab)
- simplify regexps
</pre>
</div>
</content>
</entry>
<entry>
<title>man.vim: support for command modifiers</title>
<updated>2016-08-24T15:51:59+00:00</updated>
<author>
<name>Anmol Sethi</name>
<email>anmol@aubble.com</email>
</author>
<published>2016-08-11T14:20:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=728d5823331cf9d36ffa8389e5819e67324735d8'/>
<id>728d5823331cf9d36ffa8389e5819e67324735d8</id>
<content type='text'>
Closes #5235
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #5235
</pre>
</div>
</content>
</entry>
</feed>
