gdb.vim 675 B

12345678910111213141516171819202122
  1. " Vim filetype plugin file
  2. " Language: gdb
  3. " Maintainer: Michaël Peeters <NOSPAMm.vim@noekeon.org>
  4. " Last Changed: 2017-10-26
  5. " 2024-04-10: - add Matchit support (by Vim Project)
  6. " 2024-04-23: - add space to commentstring (by Riley Bruins) ('commentstring')
  7. if exists("b:did_ftplugin") | finish | endif
  8. let b:did_ftplugin = 1
  9. setlocal commentstring=#\ %s
  10. setlocal include=^\\s*source
  11. " Undo the stuff we changed.
  12. let b:undo_ftplugin = "setlocal cms< include<"
  13. " Matchit support
  14. if !exists('b:match_words')
  15. let b:match_words = '\<\%(if\|while\|define\|document\)\>:\<else\>:\<end\>'
  16. let b:undo_ftplugin ..= " | unlet! b:match_words"
  17. endif