Files
neovim/runtime/syntax
Anmol Sethi 42e9606c23 man.vim: rewrite
- Smart autocomplete. It's automatically sorted, filtered for duplicates
  and even formats the candidates based on what is needed. For example,
  `:Man 1 printf<TAB>` will show the pages that are in section 1m as
  'page(sect)' to let you know they are in a more specific section.
- Instead of trying to unset $MANPAGER we use the -P flag to set the
  pager to cat
- Always use the section arg '-s', it makes the code much simpler
  (see comment in s:man-args).
- A manpage name starting with '-' is invalid. It's fine for sections
  because of the use of '-s'.

- The tagstack is an actual stack now, makes it much simpler.
- By using v:count and v:count1, the plugin can explicitly check whether
  the user set a count, instead of relying on a default value (0) that
  is actually a real manpage section.
- Extraction of a manpage reference is much more simple. No giant long
  complicated regexes. Now, the plugin lets `man` handle the actual
  validation. We merely extract the section and page. Syntax regexes are
  a bit more specific though to prevent highlighting everything.
- Multilingual support in the syntax file. Removed the cruft that was only
  relevent to vim. Also simplified and improved many of the regexes.

- Using shellescape when sending the page and sect as arguments
- In general, the code flow is much more obvious.
- man#get_page has been split up into smaller functions with explicit
  responsibilties
- ':help' behavior in opening splits and manpages
- Comments explaining anything that needs explaining and isn't
  immediately obvious.
- If a manpage has already been loaded but if it were to reloaded at the
  current width which is the same as the width at which it was loaded at
  previously, it is not reloaded.

- Use substitute to remove the backspaced instead of `col -b`, as the
  latter doesn't work with other languages.
- Open paths to manpages
- It uses cWORD instead of cword to get the manpage under the cursor, this
  helps with files that do not have (,) in iskeyword. It also means the
  plugin does not set iskeyword locally anymore.
- <Plug>(Man) mapping for easy remapping
- Switched to single quotes wherever possible.
- Updated docs in $VIMRUNTIME/doc/filetype.txt (still need to update
  user-manual)

- Always call tolower on section name. See comment in
  s:extract_page_and_sect_fpage
- Formatting/consistency cleanup
- Automatically map q to ':q<CR>' when invoked as $MANPAGER
- It also fully supports being used as $MANPAGER. Setting the name and
  stuff automatically.
- Split up the setlocals into multiple lines for easier readability
- Better detection of errors by redirecting stderr to /dev/null. If an
  error occured, stdout will be empty.

- Functions return [sect, page] not [page, sect]. Makes more sense with
  how man takes the arguments as sect and then page.
- Pretty prints errors on a single line.
- If no section is given, automatically finds the correct section for
  the buffer name. It also gets the correct page. See the comment in
  s:get_page
- If $MANWIDTH is not set, do not assign directly to $MANWIDTH because
  then $MANWIDTH will always stay set to the same value as we only use
  winwidth(0) when the global $MANWIDTH is empty. Instead we set it
  locally for the command.
- Maintainer notes on all files.
2016-08-04 22:46:53 -04:00
..
2016-04-18 21:50:37 -07:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-01-10 12:47:35 +01:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-05-27 12:56:48 -04:00
2014-07-29 02:12:31 +00:00
2015-01-04 19:42:30 +01:00
2014-08-24 18:40:06 -05:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-08-24 18:40:06 -05:00
2016-01-14 17:58:15 +01:00
2016-05-03 19:25:18 +02:00
2014-07-29 02:12:31 +00:00
2015-12-17 21:56:41 -05:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-04-18 21:50:37 -07:00
2014-07-29 02:12:31 +00:00
2016-07-08 01:45:21 -04:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-08-24 18:40:06 -05:00
2014-07-29 02:12:31 +00:00
2014-08-24 18:40:06 -05:00
2016-05-03 21:22:45 +02:00
2016-01-14 17:58:15 +01:00
2015-12-17 04:52:20 -05:00
2016-05-03 21:03:17 +02:00
2014-07-29 02:12:31 +00:00
2015-12-17 21:56:41 -05:00
2015-08-31 02:58:00 -04:00
2014-07-29 02:12:31 +00:00
2016-01-28 13:43:43 +01:00
2014-07-29 02:12:31 +00:00
2015-11-08 12:23:37 +01:00
2014-07-29 02:12:31 +00:00
2016-06-07 06:46:37 -04:00
2016-04-16 23:06:24 -07:00
2014-07-29 02:12:31 +00:00
2016-06-06 23:08:26 -04:00
2016-05-03 21:22:45 +02:00
2016-05-03 21:22:45 +02:00
2016-05-03 21:22:45 +02:00
2014-07-29 02:12:31 +00:00
2015-12-17 05:14:40 -05:00
2016-05-10 06:04:26 -04:00
2014-07-29 02:12:31 +00:00
2016-04-18 21:50:37 -07:00
2015-01-04 19:42:30 +01:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-08-24 18:40:06 -05:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-01-10 12:47:35 +01:00
2016-01-10 12:47:35 +01:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-07-08 01:38:21 -04:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-04-18 21:16:14 -07:00
2014-12-30 13:51:39 +01:00
2014-12-30 13:51:39 +01:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-04-11 09:23:31 -07:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2015-05-03 17:47:31 -04:00
2016-01-23 12:05:15 +01:00
2016-05-03 20:59:26 +02:00
2015-10-11 18:07:58 -04:00
2014-08-24 18:40:06 -05:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2015-12-17 04:52:20 -05:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-01-15 16:09:46 +01:00
2014-12-30 14:06:20 +01:00
2014-07-29 02:12:31 +00:00
2015-11-08 03:39:07 +01:00
2014-08-24 18:40:06 -05:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2015-10-11 18:07:58 -04:00
2014-07-29 02:12:31 +00:00
2016-06-06 23:08:26 -04:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-01-14 17:58:15 +01:00
2016-08-04 22:46:53 -04:00
2016-04-28 21:11:03 +02:00
2016-06-06 23:08:26 -04:00
2014-08-24 18:40:06 -05:00
2016-06-06 23:08:26 -04:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2015-12-17 21:56:41 -05:00
2016-07-08 01:45:21 -04:00
2014-07-29 02:12:31 +00:00
2016-05-03 19:25:18 +02:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-05-03 21:22:45 +02:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-01-14 17:58:15 +01:00
2016-05-03 21:22:45 +02:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2015-11-08 03:39:07 +01:00
2014-07-29 02:12:31 +00:00
2014-08-24 18:40:06 -05:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-07-08 01:43:36 -04:00
2014-07-29 02:12:31 +00:00
2016-07-08 01:43:36 -04:00
2015-11-08 03:39:07 +01:00
2014-07-29 02:12:31 +00:00
2014-08-24 18:40:06 -05:00
2015-05-19 12:44:56 +03:00
2016-05-03 21:03:17 +02:00
2016-07-08 01:43:36 -04:00
2014-07-29 02:12:31 +00:00
2016-07-08 01:43:36 -04:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-07-08 01:43:36 -04:00
2015-12-17 04:40:15 -05:00
2014-07-29 02:12:31 +00:00
2016-07-08 01:43:36 -04:00
2016-05-27 12:56:48 -04:00
2014-07-29 02:12:31 +00:00
2014-08-24 18:40:06 -05:00
2014-07-29 02:12:31 +00:00
2014-08-24 18:40:06 -05:00
2016-04-18 21:36:16 -07:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-12-09 19:25:07 -05:00
2016-07-08 01:45:21 -04:00
2015-11-01 21:27:28 +03:00
2015-01-20 15:11:00 +01:00
2014-07-29 02:12:31 +00:00
2016-01-28 13:43:43 +01:00
2014-07-29 02:12:31 +00:00
2014-08-24 18:40:06 -05:00
2014-08-24 18:40:06 -05:00
2014-07-29 02:12:31 +00:00
2016-05-03 21:13:41 +02:00
2014-07-29 02:12:31 +00:00
2016-01-23 12:05:15 +01:00
2016-07-08 01:43:36 -04:00
2016-07-08 01:43:36 -04:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2015-12-17 21:56:41 -05:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-04-16 23:06:24 -07:00
2016-04-18 21:50:37 -07:00
2016-01-10 12:47:35 +01:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-08-24 18:40:06 -05:00
2016-03-29 21:58:28 +09:00
2016-07-08 01:45:21 -04:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2015-09-27 15:17:20 +02:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-01-25 21:45:26 +01:00
2016-01-25 21:45:26 +01:00
2016-01-25 21:45:26 +01:00
2015-12-17 05:14:40 -05:00
2016-03-29 21:58:28 +09:00
2016-07-08 01:43:36 -04:00
2015-11-07 14:33:10 -05:00
2015-08-15 15:25:30 -03:00
2014-12-30 13:51:39 +01:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-01-10 12:47:35 +01:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2016-01-10 12:47:35 +01:00
2016-01-28 13:43:43 +01:00
2016-01-27 14:22:48 +01:00
2014-07-29 02:12:31 +00:00
2015-08-02 05:17:49 -04:00
2016-07-08 01:38:21 -04:00

This directory contains Vim scripts for syntax highlighting.

These scripts are not for a language, but are used by Vim itself:

syntax.vim	Used for the ":syntax on" command.  Uses synload.vim.

manual.vim	Used for the ":syntax manual" command.  Uses synload.vim.

synload.vim	Contains autocommands to load a language file when a certain
		file name (extension) is used.  And sets up the Syntax menu
		for the GUI.

nosyntax.vim	Used for the ":syntax off" command.  Undo the loading of
		synload.vim.


A few special files:

2html.vim	Converts any highlighted file to HTML (GUI only).
colortest.vim	Check for color names and actual color on screen.
hitest.vim	View the current highlight settings.
whitespace.vim  View Tabs and Spaces.


If you want to write a syntax file, read the docs at ":help usr_44.txt".

If you make a new syntax file which would be useful for others, please send it
to Bram@vim.org.  Include instructions for detecting the file type for this
language, by file name extension or by checking a few lines in the file.
And please write the file in a portable way, see ":help 44.12".

If you have remarks about an existing file, send them to the maintainer of
that file.  Only when you get no response send a message to Bram@vim.org.

If you are the maintainer of a syntax file and make improvements, send the new
version to Bram@vim.org.

For further info see ":help syntax" in Vim.