blob: 7c10633be4d846dd056c2a55e935f7f58bd55eaa [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)
Bram Moolenaar01164a62017-11-02 22:58:42 +01006
7if exists("b:did_ftplugin") | finish | endif
8let b:did_ftplugin = 1
9
10setlocal commentstring=#%s
Wu, Zhenyu556c6212024-04-10 22:42:10 +020011setlocal include=^\\s*source
Bram Moolenaar01164a62017-11-02 22:58:42 +010012
13" Undo the stuff we changed.
Wu, Zhenyu556c6212024-04-10 22:42:10 +020014let b:undo_ftplugin = "setlocal cms< include<"
15
16" Matchit support
17if !exists('b:match_words')
18 let b:match_words = '\<\%(if\|while\|define\|document\)\>:\<else\>:\<end\>'
19 let b:undo_ftplugin ..= " | unlet! b:match_words"
20endif