robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
9e1bbb9813
master
1" Vim filetype plugin 2" Language: CMake 3" Maintainer: Keith Smiley <keithbsmiley@gmail.com> 4" Last Change: 2018 Aug 30 5" 2024 Apr 20 - add include and suffixadd (Vim Project) 6 7" Only do this when not done yet for this buffer 8if exists ( "b:did_ftplugin" ) 9finish 10endif 11 12" save 'cpo' for restoration at the end of this file 13let s: cpo_save = & cpo 14set cpo & vim 15 16" Don't load another plugin for this buffer 17let b: did_ftplugin = 1 18 19let b: undo_ftplugin = "setl inc< sua< commentstring<" 20 21if exists ( 'loaded_matchit' ) 22let b: match_words = '\<if\>:\<elseif\>\|\<else\>:\<endif\>' 23 \. ',\<foreach\>\|\<while\>:\<break\>:\<endforeach\>\|\<endwhile\>' 24 \. ',\<macro\>:\<endmacro\>' 25 \. ',\<function\>:\<endfunction\>' 26let b: match_ignorecase = 1 27 28let b: undo_ftplugin .= "| unlet b:match_words" 29endif 30 31setlocal include = \s*include 32setlocal suffixesadd = .cmake,-config.cmake 33setlocal commentstring = #\ %s 34 35" restore 'cpo' and clean up buffer variable 36let & cpo = s: cpo_save 37unlet s: cpo_save