7
|
1 " Vim filetype plugin file
|
|
2 " Language: Aap recipe
|
|
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
|
26148
|
4 " Last Change: 2021 Nov 14
|
7
|
5
|
|
6 " Only do this when not done yet for this buffer
|
|
7 if exists("b:did_ftplugin")
|
|
8 finish
|
|
9 endif
|
|
10
|
|
11 " Don't load another plugin for this buffer
|
|
12 let b:did_ftplugin = 1
|
|
13
|
26148
|
14 " Reset 'formatoptions', 'comments', 'commentstring' and 'expandtab' to undo
|
|
15 " this plugin.
|
|
16 let b:undo_ftplugin = "setl fo< com< cms< et<"
|
7
|
17
|
|
18 " Set 'formatoptions' to break comment lines but not other lines,
|
|
19 " and insert the comment leader when hitting <CR> or using "o".
|
|
20 setlocal fo-=t fo+=croql
|
|
21
|
|
22 " Set 'comments' to format dashed lists in comments.
|
4264
|
23 setlocal comments=s:#\ -,m:#\ \ ,e:#,n:#,fb:-
|
26148
|
24 setlocal commentstring=#\ %s
|
7
|
25
|
|
26 " Expand tabs to spaces to avoid trouble.
|
|
27 setlocal expandtab
|
26148
|
28
|
|
29 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
|
30 let b:browsefilter = "Aap Recipe Files (*.aap)\t*.aap\nAll Files (*.*)\t*.*\n"
|
|
31 let b:undo_ftplugin ..= " | unlet! b:browsefilter"
|
|
32 endif
|