Files
neovim/runtime/ftplugin
zeertzjq d8deb91819 vim-patch:8d8cb45756cb (#28657)
runtime(sh,zsh): clear $MANPAGER in ftplugin before shelling out

Say you use Vim and set MANPAGER='vim -M +MANPAGER --not-a-term -'; then
:{Zs,S}hKeywordPrg (or K) will crap out and spew terminal garbage into
less when bash's "help" fails. This was introduced by 2f25e40b1
(runtime: configure keywordpg for some file types (vim/vim#5566), 2023-08-23)
and may be present in other files touched by that commit.

Make the "man" invocation sensible by unsetting MANPAGER in the
environment.

Note that changing MANPAGER for `:terminal` is not needed; Vim within
Vim is perfectly fine.

closes: vim/vim#14679

8d8cb45756

Co-authored-by: D. Ben Knoble <ben.knoble+github@gmail.com>
2024-05-07 17:05:55 +08:00
..
2021-09-22 06:12:06 -07:00
2017-11-06 05:26:16 +01:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2021-05-01 23:19:58 -04:00
2017-11-06 05:26:16 +01:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2023-08-29 11:32:46 +02:00
2024-02-15 10:00:59 +01:00
2024-04-11 18:23:18 +08:00
2024-01-15 11:40:44 +01:00
2024-04-22 00:18:34 +02:00
2017-11-06 05:26:16 +01:00
2024-01-15 11:40:44 +01:00
2023-08-23 20:36:16 +01:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2022-07-26 11:26:23 +02:00
2024-04-19 16:09:30 +02:00
2014-07-29 02:12:31 +00:00
2023-08-13 13:25:10 +01:00
2023-08-29 11:32:46 +02:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2019-07-29 20:50:07 +02:00
2014-07-29 02:12:31 +00:00
2023-11-05 21:52:02 +01:00
2022-09-28 12:48:36 +02:00
2024-01-15 11:40:44 +01:00
2024-04-21 00:09:48 +02:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2024-01-15 11:40:44 +01:00
2021-10-16 18:03:51 +02:00
2023-06-11 12:40:22 +01:00
2017-11-06 05:26:16 +01:00
2022-09-18 15:20:20 +02:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2021-05-01 22:29:03 -04:00
2017-04-28 21:13:55 +02:00
2017-11-06 05:26:16 +01:00
2024-03-20 22:01:40 +01:00
2023-10-27 10:06:52 +02:00
2023-02-03 09:18:18 +01:00
2023-10-27 10:06:52 +02:00
2017-11-06 05:26:16 +01:00
2022-07-30 15:48:32 +02:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2015-01-04 19:42:30 +01:00
2024-01-15 11:40:44 +01:00
2021-09-13 16:33:41 +02:00
2024-01-15 11:40:44 +01:00
2024-04-13 17:28:55 +08:00
2023-08-29 11:32:46 +02:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2023-12-28 10:42:09 +01:00
2022-04-27 17:48:35 +02:00
2023-12-22 01:07:50 +01:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2023-06-11 12:40:22 +01:00
2022-07-02 11:06:03 +02:00
2023-08-29 11:32:46 +02:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2021-05-01 23:19:58 -04:00
2024-01-15 11:40:44 +01:00
2021-05-01 23:19:57 -04:00
2024-04-11 18:22:32 +08:00
2024-01-17 14:47:40 +00:00
2024-01-17 14:47:40 +00:00
2023-12-29 00:54:09 +01:00
2023-12-29 00:54:09 +01:00
2022-09-10 14:54:13 +02:00
2022-01-11 14:14:17 +01:00
2014-12-30 13:51:39 +01:00
2023-10-08 23:31:49 +02:00
2021-09-22 06:12:06 -07:00
2016-10-15 12:15:36 +09:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2022-09-28 12:48:36 +02:00
2024-01-15 11:40:44 +01:00
2021-05-01 23:19:58 -04:00
2023-08-29 11:32:46 +02:00
2023-08-21 20:32:28 +09:00
2023-08-30 09:55:24 +02:00
2016-05-25 21:05:01 -04:00
2016-05-03 20:59:26 +02:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2024-01-15 11:40:44 +01:00
2024-01-27 12:02:59 +01:00
2021-12-16 21:46:13 +01:00
2024-01-15 11:40:44 +01:00
2021-11-22 10:53:57 +01:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2024-04-19 14:49:33 +08:00
2024-01-15 11:40:44 +01:00
2021-04-27 09:21:31 -04:00
2024-04-30 00:10:02 +02:00
2024-01-15 11:40:44 +01:00
2021-11-27 19:39:42 +01:00
2022-09-10 14:54:13 +02:00
2024-01-15 11:40:44 +01:00
2021-08-15 11:02:19 +02:00
2024-04-13 17:28:39 +08:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2015-10-11 18:07:58 -04:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2022-03-20 10:48:10 +01:00
2021-05-02 11:51:38 -04:00
2023-04-23 15:22:55 +02:00
2023-02-03 09:18:18 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2023-12-16 15:57:22 +01:00
2018-10-29 10:01:44 +01:00
2023-08-29 11:32:46 +02:00
2024-01-15 11:40:44 +01:00
2023-05-15 09:38:32 +02:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2023-08-13 13:25:10 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2023-08-13 13:25:10 +01:00
2017-11-06 05:26:16 +01:00
2023-12-29 00:54:09 +01:00
2022-04-27 17:48:35 +02:00
2021-09-13 16:33:41 +02:00
2024-01-15 11:40:44 +01:00
2017-04-29 01:01:51 +02:00
2019-07-29 20:50:07 +02:00
2023-10-08 23:31:49 +02:00
2024-01-15 11:40:44 +01:00
2017-04-29 01:01:51 +02:00
2017-11-06 05:26:16 +01:00
2024-01-15 11:40:44 +01:00
2023-10-08 23:31:49 +02:00
2017-11-06 05:26:16 +01:00
2017-11-07 23:07:03 +01:00
2023-04-23 15:22:55 +02:00
2023-08-29 11:32:46 +02:00
2023-08-12 11:01:05 +02:00
2021-05-01 22:29:03 -04:00
2023-08-13 13:25:10 +01:00
2021-09-13 16:33:41 +02:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2024-01-16 23:08:41 +00:00
2017-11-06 05:26:16 +01:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2023-08-29 11:32:46 +02:00
2014-07-29 02:12:31 +00:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2024-01-15 11:40:44 +01:00
2022-10-17 08:19:48 +02:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2023-08-13 11:53:51 +02:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2024-03-03 10:38:58 +01:00
2017-11-06 05:26:16 +01:00
2024-01-15 11:40:44 +01:00
2021-05-02 12:53:49 -04:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2022-04-27 17:48:35 +02:00
2024-03-03 10:38:58 +01:00
2024-03-03 10:38:58 +01:00
2017-11-06 05:26:16 +01:00
2024-03-03 10:38:58 +01:00
2024-01-15 11:40:44 +01:00
2021-05-01 22:29:02 -04:00
2024-03-03 10:38:58 +01:00
2023-08-24 11:33:06 +09:00
2024-01-15 11:40:44 +01:00
2024-03-18 22:01:33 +01:00
2023-12-29 00:54:09 +01:00
2023-12-15 10:30:13 +01:00
2023-08-29 11:32:46 +02:00
2017-11-06 05:26:16 +01:00
2017-04-28 21:13:55 +02:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2023-08-29 11:32:46 +02:00
2024-01-15 11:40:44 +01:00
2024-05-07 17:05:55 +08:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2023-08-24 11:33:06 +09:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2022-10-17 08:19:48 +02:00
2023-10-08 23:31:49 +02:00
2023-10-08 23:31:49 +02:00
2024-01-15 11:40:44 +01:00
2022-07-30 15:48:32 +02:00
2021-05-01 23:19:57 -04:00
2021-04-27 09:21:34 -04:00
2017-11-06 05:26:16 +01:00
2023-10-08 23:31:49 +02:00
2022-06-15 09:20:32 +02:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2021-09-13 16:33:41 +02:00
2019-07-29 20:50:07 +02:00
2024-01-15 11:40:44 +01:00
2021-10-16 18:03:51 +02:00
2023-08-11 22:06:37 +02:00
2017-11-06 05:26:16 +01:00
2022-06-15 09:20:32 +02:00
2024-04-30 07:04:42 +08:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2023-10-08 23:31:49 +02:00
2023-08-09 22:34:02 +02:00
2017-11-06 05:26:16 +01:00
2023-08-29 11:32:46 +02:00
2024-01-15 11:40:44 +01:00
2022-09-18 15:20:20 +02:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2024-04-15 07:39:32 +08:00
2014-12-30 13:51:39 +01:00
2022-07-02 11:06:03 +02:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2024-01-15 11:40:44 +01:00
2017-11-06 05:26:16 +01:00
2022-06-15 09:20:32 +02:00
2024-01-15 11:40:44 +01:00
2024-01-15 11:40:44 +01:00
2024-04-16 09:33:51 +08:00
2023-11-05 21:52:02 +01:00
2023-08-13 13:25:10 +01:00
2024-05-07 17:05:55 +08:00

The ftplugin directory is for Vim plugin scripts that are only used for a
specific filetype.

All files ending in .vim in this directory and subdirectories will be sourced
by Vim when it detects the filetype that matches the name of the file or
subdirectory.
For example, these are all loaded for the "c" filetype:

	c.vim
	c_extra.vim
	c/settings.vim

Note that the "_" in "c_extra.vim" is required to separate the filetype name
from the following arbitrary name.

The filetype plugins are only loaded when the ":filetype plugin" command has
been used.

The default filetype plugin files contain settings that 95% of the users will
want to use.  They do not contain personal preferences, like the value of
'shiftwidth'.

If you want to do additional settings, or overrule the default filetype
plugin, you can create your own plugin file.  See ":help ftplugin" in Vim.