robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Sean Dewarvim-patch:e978b4534a5e (#24697)cbf54ec2a5

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