annotate runtime/ftplugin/aap.vim @ 26686:c04b28fad0cc v8.2.3872

patch 8.2.3872: Vim9: finddir() and uniq() return types can be more specific Commit: https://github.com/vim/vim/commit/080182216e605df3428cc699b9fd7e761368d12f Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 22 18:45:37 2021 +0000 patch 8.2.3872: Vim9: finddir() and uniq() return types can be more specific Problem: Vim9: finddir() and uniq() return types can be more specific. Solution: Adjust the return type.
author Bram Moolenaar <Bram@vim.org>
date Wed, 22 Dec 2021 20:00:04 +0100
parents 624439a39432
children 4027cefc2aab
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Aap recipe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
4 " Last Change: 2021 Nov 14
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Only do this when not done yet for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Don't load another plugin for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
14 " Reset 'formatoptions', 'comments', 'commentstring' and 'expandtab' to undo
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
15 " this plugin.
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
16 let b:undo_ftplugin = "setl fo< com< cms< et<"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Set 'formatoptions' to break comment lines but not other lines,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " and insert the comment leader when hitting <CR> or using "o".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 setlocal fo-=t fo+=croql
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " Set 'comments' to format dashed lists in comments.
4264
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
23 setlocal comments=s:#\ -,m:#\ \ ,e:#,n:#,fb:-
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
24 setlocal commentstring=#\ %s
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " Expand tabs to spaces to avoid trouble.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 setlocal expandtab
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
28
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
29 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
30 let b:browsefilter = "Aap Recipe Files (*.aap)\t*.aap\nAll Files (*.*)\t*.*\n"
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
31 let b:undo_ftplugin ..= " | unlet! b:browsefilter"
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
32 endif