diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-06 12:14:49 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-06 12:14:49 +0200 |
commit | 61da1bfa6c6b19dd670671a318ce9f9e2acc784c (patch) | |
tree | 923078cfd946dd654e309bd75d3c7fc418f6f4a9 /runtime/doc/syntax.txt | |
parent | de6dbb452ad677abab05a84bc48b968bc5315fa4 (diff) |
Update runtime files.
Diffstat (limited to 'runtime/doc/syntax.txt')
-rw-r--r-- | runtime/doc/syntax.txt | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 6dcb37195a..513ab31106 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1,4 +1,4 @@ -*syntax.txt* For Vim version 8.1. Last change: 2019 May 11 +*syntax.txt* For Vim version 8.1. Last change: 2019 Jun 01 VIM REFERENCE MANUAL by Bram Moolenaar @@ -5210,6 +5210,15 @@ load the syntax file. The command also deletes the "b:current_syntax" variable, since no syntax is loaded after this command. +To clean up specific syntax groups for the current buffer: > + :syntax clear {group-name} .. +This removes all patterns and keywords for {group-name}. + +To clean up specific syntax group lists for the current buffer: > + :syntax clear @{grouplist-name} .. +This sets {grouplist-name}'s contents to an empty list. + + *:syntax-off* *:syn-off* If you want to disable syntax highlighting for all buffers, you need to remove the autocommands that load the syntax files: > :syntax off @@ -5219,14 +5228,6 @@ What this command actually does, is executing the command > See the "nosyntax.vim" file for details. Note that for this to work $VIMRUNTIME must be valid. See |$VIMRUNTIME|. -To clean up specific syntax groups for the current buffer: > - :syntax clear {group-name} .. -This removes all patterns and keywords for {group-name}. - -To clean up specific syntax group lists for the current buffer: > - :syntax clear @{grouplist-name} .. -This sets {grouplist-name}'s contents to an empty list. - *:syntax-reset* *:syn-reset* If you have changed the colors and messed them up, use this command to get the defaults back: > |