Mercurial > vim
annotate runtime/ftplugin/config.vim @ 29479:5c390aa28f44 v9.0.0081
patch 9.0.0081: command line completion of user command may have duplicates
Commit: https://github.com/vim/vim/commit/c2842adfb2ca0637f13e2793fefa18e7818684f9
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 26 17:23:47 2022 +0100
patch 9.0.0081: command line completion of user command may have duplicates
Problem: Command line completion of user command may have duplicates.
(Dani Dickstein)
Solution: Skip global user command if an identical buffer-local one is
defined. (closes #10797)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 26 Jul 2022 18:30:03 +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 |