neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

make.vim (1125B)


      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
      8 if exists("b:did_ftplugin")
      9  finish
     10 endif
     11 let b:did_ftplugin = 1
     12 
     13 let 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
     16 setlocal 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".
     20 setlocal fo-=t fo+=croql
     21 
     22 " Set 'comments' to format dashed lists in comments
     23 setlocal com=sO:#\ -,mO:#\ \ ,b:#
     24 
     25 " Set 'commentstring' to put the marker after a #.
     26 setlocal commentstring=#\ %s
     27 
     28 " Including files.
     29 let &l:include = '^\s*include'
     30 
     31 " For matchit.vim, suggested by Albert Netymk and Ken Takata.
     32 if 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\>'
     34 endif