Bram Moolenaar | 4c3f536 | 2006-04-11 21:38:50 +0000 | [diff] [blame] | 1 | " Vim filetype plugin file |
Bram Moolenaar | f2571c6 | 2015-06-09 19:44:55 +0200 | [diff] [blame] | 2 | " 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) |
| 7 | " Repository: https://github.com/chrisbra/vim-kconfig |
Bram Moolenaar | 4c3f536 | 2006-04-11 21:38:50 +0000 | [diff] [blame] | 8 | |
| 9 | if exists("b:did_ftplugin") |
| 10 | finish |
| 11 | endif |
| 12 | let b:did_ftplugin = 1 |
| 13 | |
Bram Moolenaar | e37d50a | 2008-08-06 17:06:04 +0000 | [diff] [blame] | 14 | let s:cpo_save = &cpo |
| 15 | set cpo&vim |
| 16 | |
Bram Moolenaar | 4c3f536 | 2006-04-11 21:38:50 +0000 | [diff] [blame] | 17 | let b:undo_ftplugin = "setl com< cms< fo<" |
| 18 | |
| 19 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql |
Bram Moolenaar | e37d50a | 2008-08-06 17:06:04 +0000 | [diff] [blame] | 20 | |
Bram Moolenaar | f2571c6 | 2015-06-09 19:44:55 +0200 | [diff] [blame] | 21 | " For matchit.vim |
| 22 | if exists("loaded_matchit") |
| 23 | let b:match_words = '^\<menu\>:\<endmenu\>,^\<if\>:\<endif\>,^\<choice\>:\<endchoice\>' |
| 24 | endif |
| 25 | |
Bram Moolenaar | e37d50a | 2008-08-06 17:06:04 +0000 | [diff] [blame] | 26 | let &cpo = s:cpo_save |
| 27 | unlet s:cpo_save |