kconfig.vim 703 B

12345678910111213141516171819202122232425262728
  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: 2015-05-29
  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 s:cpo_save = &cpo
  13. set cpo&vim
  14. let b:undo_ftplugin = "setl com< cms< fo<"
  15. setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
  16. " For matchit.vim
  17. if exists("loaded_matchit")
  18. let b:match_words = '^\<menu\>:\<endmenu\>,^\<if\>:\<endif\>,^\<choice\>:\<endchoice\>'
  19. endif
  20. let &cpo = s:cpo_save
  21. unlet s:cpo_save