Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 1 | " Vim filetype plugin file |
| 2 | " Language: gdb |
| 3 | " Maintainer: Michaƫl Peeters <NOSPAMm.vim@noekeon.org> |
Wu, Zhenyu | 556c621 | 2024-04-10 22:42:10 +0200 | [diff] [blame] | 4 | " Last Changed: 2017-10-26 |
| 5 | " 2024-04-10: - add Matchit support (by Vim Project) |
Riley Bruins | 0a08306 | 2024-06-03 20:40:45 +0200 | [diff] [blame] | 6 | " 2024-04-23: - add space to commentstring (by Riley Bruins) ('commentstring') |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 7 | |
| 8 | if exists("b:did_ftplugin") | finish | endif |
| 9 | let b:did_ftplugin = 1 |
| 10 | |
Riley Bruins | 0a08306 | 2024-06-03 20:40:45 +0200 | [diff] [blame] | 11 | setlocal commentstring=#\ %s |
Wu, Zhenyu | 556c621 | 2024-04-10 22:42:10 +0200 | [diff] [blame] | 12 | setlocal include=^\\s*source |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 13 | |
| 14 | " Undo the stuff we changed. |
Wu, Zhenyu | 556c621 | 2024-04-10 22:42:10 +0200 | [diff] [blame] | 15 | let b:undo_ftplugin = "setlocal cms< include<" |
| 16 | |
| 17 | " Matchit support |
| 18 | if !exists('b:match_words') |
| 19 | let b:match_words = '\<\%(if\|while\|define\|document\)\>:\<else\>:\<end\>' |
| 20 | let b:undo_ftplugin ..= " | unlet! b:match_words" |
| 21 | endif |