Files
neovim/runtime/autoload
William Chargin 9fb0f12357 feat(man.vim): convert spaces to underscores #16068
PostgreSQL ships with man pages for SQL statements like `CREATE TABLE`,
which are provided with underscores as `man 7 CREATE_TABLE`. This patch
updates `man#open_page` (as used by `:Man`) such that visually selecting
the words `CREATE TABLE` in SQL code and pressing `K` properly opens the
desired man page.

Writing `:Man CREATE TABLE` still does not work, since `CREATE` is
interpreted as a section name. (Similarly, `:Man CREATE TABLE AS` fails
because there are too many arguments to `:Man`.) But this is okay,
because if you're typing it anyway then you can just enter underscores
and also tab-completion properly suggests `:Man CREATE_TABLE(7)`.

This is a bit bespoke, but my box has over 9000 man pages (as reported
by `man -k '' | wc -l`), and not one of them has a space in the man page
name, whereas the Postgres manuals do exist and are actually useful.

Test Plan:
On a machine with Postgres manual pages, running

    nvim -u NORC +'exe "norm iCREATE TABLE foo(x int);" | norm 0veeK'

should open the appropriate man page.

wchargin-branch: man-spaces-to-underscores
2021-10-19 07:24:43 -07:00
..
2021-09-13 16:33:41 +02:00
2021-05-01 22:29:02 -04:00
2021-05-01 23:47:11 -04:00
2017-04-29 01:47:36 +02:00
2017-04-29 01:47:36 +02:00
2021-09-22 06:12:06 -07:00
2021-09-13 16:33:41 +02:00
2017-04-28 23:49:16 +02:00
2021-10-05 14:12:16 +02:00
2021-05-01 01:37:13 -04:00
2019-07-29 20:50:07 +02:00
2020-06-10 22:21:14 +09:00
2019-07-29 20:50:07 +02:00
2017-11-07 01:04:17 +01:00
2017-11-07 01:04:17 +01:00
2021-05-02 13:00:38 -04:00
2021-09-13 16:33:41 +02:00
2021-09-13 16:33:41 +02:00
2021-09-13 16:33:41 +02:00

The autoload directory is for standard Vim autoload scripts.

These are functions used by plugins and for general use.  They will be loaded
automatically when the function is invoked.  See ":help autoload".

gzip.vim	for editing compressed files
netrw*.vim	browsing (remote) directories and editing remote files
tar.vim		browsing tar files
zip.vim		browsing zip files
paste.vim	common code for mswin.vim, menu.vim and macmap.vim
spellfile.vim	downloading of a missing spell file

Omni completion files:
ccomplete.vim		C
csscomplete.vim		HTML / CSS
htmlcomplete.vim	HTML
javascriptcomplete.vim  Javascript
phpcomplete.vim		PHP
pythoncomplete.vim	Python
rubycomplete.vim	Ruby
syntaxcomplete.vim	from syntax highlighting
xmlcomplete.vim		XML (uses files in the xml directory)