Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
cmake.vim38 linesDownload Raw Back to ftplugin
1" Vim filetype plugin2" Language:    CMake3" Maintainer:  Keith Smiley <keithbsmiley@gmail.com>4" Last Change: 2018 Aug 305" 2024 Apr 20  - add include and suffixadd (Vim Project)6 7" Only do this when not done yet for this buffer8if exists("b:did_ftplugin")9  finish10endif11 12" save 'cpo' for restoration at the end of this file13let s:cpo_save = &cpo14set cpo&vim15 16" Don't load another plugin for this buffer17let b:did_ftplugin = 118 19let b:undo_ftplugin = "setl inc< sua< commentstring<"20 21if exists('loaded_matchit')22  let b:match_words = '\<if\>:\<elseif\>\|\<else\>:\<endif\>'23        \ . ',\<foreach\>\|\<while\>:\<break\>:\<endforeach\>\|\<endwhile\>'24        \ . ',\<macro\>:\<endmacro\>'25        \ . ',\<function\>:\<endfunction\>'26  let b:match_ignorecase = 127 28  let b:undo_ftplugin .= "| unlet b:match_words"29endif30 31setlocal include=\s*include32setlocal suffixesadd=.cmake,-config.cmake33setlocal commentstring=#\ %s34 35" restore 'cpo' and clean up buffer variable36let &cpo = s:cpo_save37unlet s:cpo_save38 
codekingpro/portable-devtools · Team Ai