Files
vim-mirror/runtime/ftplugin
Lifepillar cb7cbfcc12 runtime: Update files for ConTeXt, METAFONT, and MetaPost.
This update is meant to be included in the upcoming 9.2 release.

**New**

- Support ConTeXt's convention to optionally specify an output directory
  in a comment line at the beginning of a source file.
- If a log file is not found, Vim does not create a new buffer.
- Removed `syntax/shared` files for the following reasons:
  - they are not necessary for the plugin to work (they only improve
    over existing syntax highlighting);
  - they are relative large;
  - they can be automatically (re)generated by users at any time using
    ConTeXt (explained in the doc);
  - since ConTeXt is updated frequently, they quickly become obsolete.

**Minor**

- Prefer `var` to `const` inside functions.
- Prefer `$`-interpolation to `printf()`.
- All revision dates set to the same date for consistency.
- Updated the error format.
- Various tweaks to the documentation, but nothing disruptive or new.

closes: #19148

Signed-off-by: Lifepillar <lifepillar@lifepillar.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-01-11 18:45:42 +00:00
..
2022-10-28 20:47:54 +01:00
2022-06-03 21:59:47 +01:00
2023-06-10 21:40:39 +01:00
2022-09-18 13:04:22 +01:00
2025-03-15 09:50:41 +01:00
2022-03-08 21:35:07 +00:00
2022-04-27 15:25:03 +01:00
2022-07-01 18:45:04 +01:00
2023-12-28 23:17:54 +01:00
2022-01-08 21:51:59 +00:00
2025-07-05 15:18:41 +02:00
2021-12-16 14:41:10 +00:00
2023-04-22 22:40:14 +01:00
2023-02-02 13:59:48 +00:00
2023-05-14 18:50:25 +01:00
2023-04-22 22:40:14 +01:00
2022-01-29 22:20:48 +00:00
2024-07-07 21:07:56 +02:00
2025-07-20 09:49:57 +02:00
2023-08-09 16:50:52 +02:00
2026-01-07 21:54:51 +00:00
2026-01-07 21:53:13 +00: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.