Mercurial > vim
comparison runtime/doc/syntax.txt @ 16944:d23afa4d8b63
Update runtime files.
commit https://github.com/vim/vim/commit/61da1bfa6c6b19dd670671a318ce9f9e2acc784c
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 6 12:14:49 2019 +0200
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 06 Jun 2019 12:15:07 +0200 |
parents | c002c4899529 |
children | 9ccb1ea9b2fc |
comparison
equal
deleted
inserted
replaced
16943:2f0579d6b1e5 | 16944:d23afa4d8b63 |
---|---|
1 *syntax.txt* For Vim version 8.1. Last change: 2019 May 11 | 1 *syntax.txt* For Vim version 8.1. Last change: 2019 Jun 01 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
5208 in a syntax file itself, because syntax is cleared by the autocommands that | 5208 in a syntax file itself, because syntax is cleared by the autocommands that |
5209 load the syntax file. | 5209 load the syntax file. |
5210 The command also deletes the "b:current_syntax" variable, since no syntax is | 5210 The command also deletes the "b:current_syntax" variable, since no syntax is |
5211 loaded after this command. | 5211 loaded after this command. |
5212 | 5212 |
5213 To clean up specific syntax groups for the current buffer: > | |
5214 :syntax clear {group-name} .. | |
5215 This removes all patterns and keywords for {group-name}. | |
5216 | |
5217 To clean up specific syntax group lists for the current buffer: > | |
5218 :syntax clear @{grouplist-name} .. | |
5219 This sets {grouplist-name}'s contents to an empty list. | |
5220 | |
5221 *:syntax-off* *:syn-off* | |
5213 If you want to disable syntax highlighting for all buffers, you need to remove | 5222 If you want to disable syntax highlighting for all buffers, you need to remove |
5214 the autocommands that load the syntax files: > | 5223 the autocommands that load the syntax files: > |
5215 :syntax off | 5224 :syntax off |
5216 | 5225 |
5217 What this command actually does, is executing the command > | 5226 What this command actually does, is executing the command > |
5218 :source $VIMRUNTIME/syntax/nosyntax.vim | 5227 :source $VIMRUNTIME/syntax/nosyntax.vim |
5219 See the "nosyntax.vim" file for details. Note that for this to work | 5228 See the "nosyntax.vim" file for details. Note that for this to work |
5220 $VIMRUNTIME must be valid. See |$VIMRUNTIME|. | 5229 $VIMRUNTIME must be valid. See |$VIMRUNTIME|. |
5221 | |
5222 To clean up specific syntax groups for the current buffer: > | |
5223 :syntax clear {group-name} .. | |
5224 This removes all patterns and keywords for {group-name}. | |
5225 | |
5226 To clean up specific syntax group lists for the current buffer: > | |
5227 :syntax clear @{grouplist-name} .. | |
5228 This sets {grouplist-name}'s contents to an empty list. | |
5229 | 5230 |
5230 *:syntax-reset* *:syn-reset* | 5231 *:syntax-reset* *:syn-reset* |
5231 If you have changed the colors and messed them up, use this command to get the | 5232 If you have changed the colors and messed them up, use this command to get the |
5232 defaults back: > | 5233 defaults back: > |
5233 | 5234 |