Mercurial > vim
annotate runtime/ftplugin/wget.vim @ 34147:efe7982ac118
Added tag v9.1.0034 for changeset 23bb675796f066d27bdcdc42afdcedfe2d55e120
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 16 Jan 2024 17:30:11 +0100 |
parents | 8ae680be2a51 |
children |
rev | line source |
---|---|
28777 | 1 " Vim filetype plugin file |
33729
9a846ba607bb
runtime(wget): Update for Wget2 2.1.0 (#13497)
Christian Brabandt <cb@256bit.org>
parents:
28777
diff
changeset
|
2 " Language: Wget configuration file (/etc/wgetrc ~/.wgetrc) |
28777 | 3 " Maintainer: Doug Kearns <dougkearns@gmail.com> |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
33729
diff
changeset
|
4 " Last Change: 2024 Jan 14 |
28777 | 5 |
6 if exists("b:did_ftplugin") | |
7 finish | |
8 endif | |
9 let b:did_ftplugin = 1 | |
10 | |
11 let s:cpo_save = &cpo | |
12 set cpo&vim | |
13 | |
14 setlocal comments=:#,:// | |
15 setlocal commentstring=#\ %s | |
16 setlocal formatoptions-=t formatoptions+=croql | |
17 | |
18 let b:undo_ftplugin = "setl fo< com< cms<" | |
19 | |
20 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") | |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
33729
diff
changeset
|
21 let b:browsefilter = "Wget Configuration File (wgetrc, .wgetrc)\twgetrc;.wgetrc\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
33729
diff
changeset
|
22 if has("win32") |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
33729
diff
changeset
|
23 let b:browsefilter ..= "All Files (*.*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
33729
diff
changeset
|
24 else |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
33729
diff
changeset
|
25 let b:browsefilter ..= "All Files (*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
33729
diff
changeset
|
26 endif |
28777 | 27 let b:undo_ftplugin ..= " | unlet! b:browsefilter" |
28 endif | |
29 | |
30 let &cpo = s:cpo_save | |
31 unlet s:cpo_save | |
32 | |
33 " vim: nowrap sw=2 sts=2 ts=8 |