comparison runtime/ftplugin/kconfig.vim @ 34896:1ddd65fbc10c

runtime(kconfig): add include to ftplugin (#14524) Commit: https://github.com/vim/vim/commit/159dc0fcf950e6c21f97cc337bcf19ff90ce73c6 Author: Christian Brabandt <cb@256bit.org> Date: Fri Apr 12 17:33:48 2024 +0100 runtime(kconfig): add include to ftplugin (https://github.com/vim/vim/issues/14524) related: https://github.com/vim/vim/issues/14521 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 12 Apr 2024 18:45:04 +0200
parents 0303182665d5
children
comparison
equal deleted inserted replaced
34895:a30e6625aa83 34896:1ddd65fbc10c
1 " Vim filetype plugin file 1 " Vim filetype plugin file
2 " Vim syntax file 2 " Vim syntax file
3 " Maintainer: Christian Brabandt <cb@256bit.org> 3 " Maintainer: Christian Brabandt <cb@256bit.org>
4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> 4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
5 " Latest Revision: 2015-05-29 5 " Latest Revision: 2024-04-12
6 " License: Vim (see :h license) 6 " License: Vim (see :h license)
7 " Repository: https://github.com/chrisbra/vim-kconfig 7 " Repository: https://github.com/chrisbra/vim-kconfig
8 8
9 if exists("b:did_ftplugin") 9 if exists("b:did_ftplugin")
10 finish 10 finish
11 endif 11 endif
12 let b:did_ftplugin = 1 12 let b:did_ftplugin = 1
13 13
14 let s:cpo_save = &cpo 14 let b:undo_ftplugin = "setl inc< com< cms< fo<"
15 set cpo&vim
16 15
17 let b:undo_ftplugin = "setl com< cms< fo<" 16 setlocal include=source\\s\\+
18
19 setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 17 setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
20 18
21 " For matchit.vim 19 " For matchit.vim
22 if exists("loaded_matchit") 20 if exists("loaded_matchit")
23 let b:match_words = '^\<menu\>:\<endmenu\>,^\<if\>:\<endif\>,^\<choice\>:\<endchoice\>' 21 let b:match_words = '^\<menu\>:\<endmenu\>,^\<if\>:\<endif\>,^\<choice\>:\<endchoice\>'
24 endif 22 endif
25
26 let &cpo = s:cpo_save
27 unlet s:cpo_save