blob: af88a04d5490dcb3ccaa9ba19fe57b774d7bce99 [file] [log] [blame]
Bram Moolenaar01164a62017-11-02 22:58:42 +01001" Vim filetype plugin file
2" Language: gdb
3" Maintainer: Michaƫl Peeters <NOSPAMm.vim@noekeon.org>
Wu, Zhenyu556c6212024-04-10 22:42:10 +02004" Last Changed: 2017-10-26
5" 2024-04-10: - add Matchit support (by Vim Project)
Riley Bruins0a083062024-06-03 20:40:45 +02006" 2024-04-23: - add space to commentstring (by Riley Bruins) ('commentstring')
Bram Moolenaar01164a62017-11-02 22:58:42 +01007
8if exists("b:did_ftplugin") | finish | endif
9let b:did_ftplugin = 1
10
Riley Bruins0a083062024-06-03 20:40:45 +020011setlocal commentstring=#\ %s
Wu, Zhenyu556c6212024-04-10 22:42:10 +020012setlocal include=^\\s*source
Bram Moolenaar01164a62017-11-02 22:58:42 +010013
14" Undo the stuff we changed.
Wu, Zhenyu556c6212024-04-10 22:42:10 +020015let b:undo_ftplugin = "setlocal cms< include<"
16
17" Matchit support
18if !exists('b:match_words')
19 let b:match_words = '\<\%(if\|while\|define\|document\)\>:\<else\>:\<end\>'
20 let b:undo_ftplugin ..= " | unlet! b:match_words"
21endif