annotate runtime/ftplugin/aap.vim @ 29769:e0259a817d82 v9.0.0224

patch 9.0.0224: Using NULL pointer when skipping compiled code Commit: https://github.com/vim/vim/commit/4875d6ab068f09df88d24d81de40dcd8d56e243d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 17 15:55:51 2022 +0100 patch 9.0.0224: Using NULL pointer when skipping compiled code Problem: Using NULL pointer when skipping compiled code. Solution: Check for skipping.
author Bram Moolenaar <Bram@vim.org>
date Wed, 17 Aug 2022 17:00:05 +0200
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