7
|
1 " Vim filetype plugin file
|
|
2 " Language: Make
|
|
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
|
22723
|
4 " Last Change: 2020 Oct 16
|
7
|
5
|
|
6 " Only do this when not done yet for this buffer
|
|
7 if exists("b:did_ftplugin")
|
|
8 finish
|
|
9 endif
|
|
10 let b:did_ftplugin = 1
|
|
11
|
22723
|
12 let b:undo_ftplugin = "setl et< sts< sw< fo< com< cms< inc<"
|
7
|
13
|
|
14 " Make sure a hard tab is used, required for most make programs
|
22723
|
15 setlocal noexpandtab softtabstop=0 shiftwidth=0
|
7
|
16
|
|
17 " Set 'formatoptions' to break comment lines but not other lines,
|
|
18 " and insert the comment leader when hitting <CR> or using "o".
|
|
19 setlocal fo-=t fo+=croql
|
|
20
|
|
21 " Set 'comments' to format dashed lists in comments
|
|
22 setlocal com=sO:#\ -,mO:#\ \ ,b:#
|
|
23
|
|
24 " Set 'commentstring' to put the marker after a #.
|
|
25 setlocal commentstring=#\ %s
|
39
|
26
|
|
27 " Including files.
|
|
28 let &l:include = '^\s*include'
|
4339
|
29
|
16208
|
30 " For matchit.vim, suggested by Albert Netymk and Ken Takata.
|
4339
|
31 if exists("loaded_matchit")
|
16208
|
32 let b:match_words = '^ *ifn\=\(eq\|def\)\>:^ *else\(\s\+ifn\=\(eq\|def\)\)\=\>:^ *endif\>,\<define\>:\<endef\>,^!\s*if\(n\=def\)\=\>:^!\s*else\(if\(n\=def\)\=\)\=\>:^!\s*endif\>'
|
4339
|
33 endif
|