Skip to content

Commit 159dc0f

Browse files
authored
runtime(kconfig): add include to ftplugin (#14524)
related: #14521 Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 8342410 commit 159dc0f

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

runtime/ftplugin/kconfig.vim

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11
" Vim filetype plugin file
22
" Vim syntax file
3-
" Maintainer: Christian Brabandt <cb@256bit.org>
4-
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
5-
" Latest Revision: 2015-05-29
6-
" License: Vim (see :h license)
3+
" Maintainer: Christian Brabandt <cb@256bit.org>
4+
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
5+
" Latest Revision: 2024-04-12
6+
" License: Vim (see :h license)
77
" Repository: https://github.com/chrisbra/vim-kconfig
88

99
if exists("b:did_ftplugin")
1010
finish
1111
endif
1212
let b:did_ftplugin = 1
1313

14-
let s:cpo_save = &cpo
15-
set cpo&vim
16-
17-
let b:undo_ftplugin = "setl com< cms< fo<"
14+
let b:undo_ftplugin = "setl inc< com< cms< fo<"
1815

16+
setlocal include=source\\s\\+
1917
setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
2018

2119
" For matchit.vim
2220
if exists("loaded_matchit")
2321
let b:match_words = '^\<menu\>:\<endmenu\>,^\<if\>:\<endif\>,^\<choice\>:\<endchoice\>'
2422
endif
25-
26-
let &cpo = s:cpo_save
27-
unlet s:cpo_save

0 commit comments

Comments
 (0)