Mercurial > vim
annotate runtime/ftplugin/config.vim @ 32545:36519954bf67 v9.0.1604
patch 9.0.1604: errors from the codestyle test are a bit confusing
Commit: https://github.com/vim/vim/commit/abc8130d6a680026ffb2cc36b74d239e88f775d6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 4 16:55:27 2023 +0100
patch 9.0.1604: errors from the codestyle test are a bit confusing
Problem: Errors from the codestyle test are a bit confusing.
Solution: Use assert_report() with a clearer message. Avoid a warning for
an existing swap file.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Jun 2023 18:00:05 +0200 |
parents | c968191a8557 |
children | 8ae680be2a51 |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
2 " Language: config | |
28010 | 3 " |
4 " This runtime file is looking for a new maintainer. | |
5 " | |
6 " Former maintainer: Dan Sharp | |
2034 | 7 " Last Changed: 20 Jan 2009 |
7 | 8 |
9 if exists("b:did_ftplugin") | finish | endif | |
10 | |
11 " Make sure the continuation lines below do not cause problems in | |
12 " compatibility mode. | |
13 let s:save_cpo = &cpo | |
14 set cpo-=C | |
15 | |
16 " Define some defaults in case the included ftplugins don't set them. | |
17 let s:undo_ftplugin = "" | |
18 let s:browsefilter = "Bourne Shell Files (*.sh)\t*.sh\n" . | |
19 \ "All Files (*.*)\t*.*\n" | |
20 let s:match_words = "" | |
21 | |
22 runtime! ftplugin/sh.vim ftplugin/sh_*.vim ftplugin/sh/*.vim | |
23 let b:did_ftplugin = 1 | |
24 | |
25 " Override our defaults if these were set by an included ftplugin. | |
26 if exists("b:undo_ftplugin") | |
27 let s:undo_ftplugin = b:undo_ftplugin | |
28 endif | |
29 if exists("b:browsefilter") | |
30 let s:browsefilter = b:browsefilter | |
31 endif | |
32 | |
33 " Change the :browse e filter to primarily show configure-related files. | |
34 if has("gui_win32") | |
15 | 35 let b:browsefilter="Configure Scripts (configure.*, config.*)\tconfigure*;config.*\n" . |
7 | 36 \ s:browsefilter |
37 endif | |
38 | |
39 " Undo the stuff we changed. | |
40 let b:undo_ftplugin = "unlet! b:browsefilter | " . b:undo_ftplugin | |
41 | |
42 " Restore the saved compatibility options. | |
43 let &cpo = s:save_cpo | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
44 unlet s:save_cpo |