kconfig.vim 636 B

1234567891011121314151617181920212223
  1. " Vim filetype plugin file
  2. " Vim syntax file
  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)
  7. " Repository: https://github.com/chrisbra/vim-kconfig
  8. if exists("b:did_ftplugin")
  9. finish
  10. endif
  11. let b:did_ftplugin = 1
  12. let b:undo_ftplugin = "setl inc< com< cms< fo<"
  13. setlocal include=source\\s\\+
  14. setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
  15. " For matchit.vim
  16. if exists("loaded_matchit")
  17. let b:match_words = '^\<menu\>:\<endmenu\>,^\<if\>:\<endif\>,^\<choice\>:\<endchoice\>'
  18. endif