blob: 1c2857ec509fb77ed490a743ed5fb429f572c63b [file] [log] [blame]
Bram Moolenaar4c3f5362006-04-11 21:38:50 +00001" Vim filetype plugin file
Bram Moolenaarf2571c62015-06-09 19:44:55 +02002" Vim syntax file
Christian Brabandt159dc0f2024-04-12 17:33:48 +01003" Maintainer: Christian Brabandt <cb@256bit.org>
4" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
Christian Brabandt4335fcf2025-01-20 21:01:41 +01005" Latest Revision: 2025 Jan 20
Christian Brabandt159dc0f2024-04-12 17:33:48 +01006" License: Vim (see :h license)
Bram Moolenaarf2571c62015-06-09 19:44:55 +02007" Repository: https://github.com/chrisbra/vim-kconfig
Bram Moolenaar4c3f5362006-04-11 21:38:50 +00008
9if exists("b:did_ftplugin")
10 finish
11endif
12let b:did_ftplugin = 1
13
Christian Brabandt159dc0f2024-04-12 17:33:48 +010014let b:undo_ftplugin = "setl inc< com< cms< fo<"
Bram Moolenaare37d50a2008-08-06 17:06:04 +000015
Christian Brabandt159dc0f2024-04-12 17:33:48 +010016setlocal include=source\\s\\+
Bram Moolenaar4c3f5362006-04-11 21:38:50 +000017setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
Bram Moolenaare37d50a2008-08-06 17:06:04 +000018
Bram Moolenaarf2571c62015-06-09 19:44:55 +020019" For matchit.vim
20if exists("loaded_matchit")
21 let b:match_words = '^\<menu\>:\<endmenu\>,^\<if\>:\<endif\>,^\<choice\>:\<endchoice\>'
Christian Brabandt4335fcf2025-01-20 21:01:41 +010022 let b:undo_ftplugin .= "| unlet! b:match_words"
Bram Moolenaarf2571c62015-06-09 19:44:55 +020023endif