Mercurial > vim
comparison runtime/defaults.vim @ 22456:693b7e5d7f3a v8.2.1776
patch 8.2.1776: filetype.vim may be loaded twice
Commit: https://github.com/vim/vim/commit/17bb4d4607a95e13e913519af106f1bf8b26c178
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 30 22:45:39 2020 +0200
patch 8.2.1776: filetype.vim may be loaded twice
Problem: Filetype.vim may be loaded twice.
Solution: Do "syntax on" after "filetype on". (Adam Stankiewicz,
closes #7049)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 30 Sep 2020 23:00:04 +0200 |
parents | 1cd44535be32 |
children | 17c4178f26ea |
comparison
equal
deleted
inserted
replaced
22455:8eb75f07f1e0 | 22456:693b7e5d7f3a |
---|---|
83 else | 83 else |
84 set mouse=nvi | 84 set mouse=nvi |
85 endif | 85 endif |
86 endif | 86 endif |
87 | 87 |
88 " Switch syntax highlighting on when the terminal has colors or when using the | |
89 " GUI (which always has colors). | |
90 if &t_Co > 2 || has("gui_running") | |
91 " Revert with ":syntax off". | |
92 syntax on | |
93 | |
94 " I like highlighting strings inside C comments. | |
95 " Revert with ":unlet c_comment_strings". | |
96 let c_comment_strings=1 | |
97 endif | |
98 | |
99 " Only do this part when Vim was compiled with the +eval feature. | 88 " Only do this part when Vim was compiled with the +eval feature. |
100 if 1 | 89 if 1 |
101 | 90 |
102 " Enable file type detection. | 91 " Enable file type detection. |
103 " Use the default filetype settings, so that mail gets 'tw' set to 72, | 92 " Use the default filetype settings, so that mail gets 'tw' set to 72, |
122 | 111 |
123 augroup END | 112 augroup END |
124 | 113 |
125 endif | 114 endif |
126 | 115 |
116 " Switch syntax highlighting on when the terminal has colors or when using the | |
117 " GUI (which always has colors). | |
118 if &t_Co > 2 || has("gui_running") | |
119 " Revert with ":syntax off". | |
120 syntax on | |
121 | |
122 " I like highlighting strings inside C comments. | |
123 " Revert with ":unlet c_comment_strings". | |
124 let c_comment_strings=1 | |
125 endif | |
126 | |
127 " Convenient command to see the difference between the current buffer and the | 127 " Convenient command to see the difference between the current buffer and the |
128 " file it was loaded from, thus the changes you made. | 128 " file it was loaded from, thus the changes you made. |
129 " Only define it when not defined already. | 129 " Only define it when not defined already. |
130 " Revert with: ":delcommand DiffOrig". | 130 " Revert with: ":delcommand DiffOrig". |
131 if !exists(":DiffOrig") | 131 if !exists(":DiffOrig") |