Install vim74
[msysgit.git] / share / vim / vim74 / ftplugin / make.vim
blobfb180c0e5fcb8fbefd2e3115a30262ab4388c5fa
1 " Vim filetype plugin file
2 " Language:     Make
3 " Maintainer:   Bram Moolenaar <Bram@vim.org>
4 " Last Change:  2013 Apr 22
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
12 let b:undo_ftplugin = "setl et< sts< fo< com< cms< inc<"
14 " Make sure a hard tab is used, required for most make programs
15 setlocal noexpandtab softtabstop=0
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
21 " Set 'comments' to format dashed lists in comments
22 setlocal com=sO:#\ -,mO:#\ \ ,b:#
24 " Set 'commentstring' to put the marker after a #.
25 setlocal commentstring=#\ %s
27 " Including files.
28 let &l:include = '^\s*include'
30 " For matchit.vim, suggested by Albert Netymk.
31 if exists("loaded_matchit")
32   let b:match_words = '\<if\(n\)\=\(eq\|def\)\>:\<else\>:\<endif\>,\<define\>:\<endef\>'
33 endif