Mercurial > vim
annotate runtime/syntax/manual.vim @ 19471:cb73f4ae6b7c v8.2.0293
patch 8.2.0293: various Ex commands not sufficiently tested
Commit: https://github.com/vim/vim/commit/818fc9ad143911b2faa0d7cee86724aa70a02080
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 21 17:54:45 2020 +0100
patch 8.2.0293: various Ex commands not sufficiently tested
Problem: Various Ex commands not sufficiently tested.
Solution: Add more test cases. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5673)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 21 Feb 2020 18:00:05 +0100 |
parents | 895150cd3e6f |
children | 4027cefc2aab |
rev | line source |
---|---|
7 | 1 " Vim syntax support file |
2 " Maintainer: Bram Moolenaar <Bram@vim.org> | |
7879
895150cd3e6f
commit https://github.com/vim/vim/commit/885f24fbcae2a39ae496ffb3a1e139379be8fae1
Christian Brabandt <cb@256bit.org>
parents:
1619
diff
changeset
|
3 " Last Change: 2016 Feb 01 |
7 | 4 |
5 " This file is used for ":syntax manual". | |
6 " It installs the Syntax autocommands, but no the FileType autocommands. | |
7 | |
8 if !has("syntax") | |
9 finish | |
10 endif | |
11 | |
12 " Load the Syntax autocommands and set the default methods for highlighting. | |
13 if !exists("syntax_on") | |
14 so <sfile>:p:h/synload.vim | |
15 endif | |
16 | |
17 let syntax_manual = 1 | |
18 | |
7879
895150cd3e6f
commit https://github.com/vim/vim/commit/885f24fbcae2a39ae496ffb3a1e139379be8fae1
Christian Brabandt <cb@256bit.org>
parents:
1619
diff
changeset
|
19 " Overrule the connection between FileType and Syntax autocommands. This sets |
895150cd3e6f
commit https://github.com/vim/vim/commit/885f24fbcae2a39ae496ffb3a1e139379be8fae1
Christian Brabandt <cb@256bit.org>
parents:
1619
diff
changeset
|
20 " the syntax when the file type is detected, without changing the value. |
895150cd3e6f
commit https://github.com/vim/vim/commit/885f24fbcae2a39ae496ffb3a1e139379be8fae1
Christian Brabandt <cb@256bit.org>
parents:
1619
diff
changeset
|
21 augroup syntaxset |
895150cd3e6f
commit https://github.com/vim/vim/commit/885f24fbcae2a39ae496ffb3a1e139379be8fae1
Christian Brabandt <cb@256bit.org>
parents:
1619
diff
changeset
|
22 au! FileType * exe "set syntax=" . &syntax |
895150cd3e6f
commit https://github.com/vim/vim/commit/885f24fbcae2a39ae496ffb3a1e139379be8fae1
Christian Brabandt <cb@256bit.org>
parents:
1619
diff
changeset
|
23 augroup END |
7 | 24 |
25 " If the GUI is already running, may still need to install the FileType menu. | |
1619 | 26 " Don't do it when the 'M' flag is included in 'guioptions'. |
27 if has("menu") && has("gui_running") && !exists("did_install_syntax_menu") && &guioptions !~# 'M' | |
7 | 28 source $VIMRUNTIME/menu.vim |
29 endif |