Wu, Zhenyu | 1492fe6 | 2024-04-10 22:52:40 +0200 | [diff] [blame] | 1 | " Vim filetype plugin file |
| 2 | " Language: cgdbrc |
| 3 | " Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu> |
| 4 | " Documentation: https://cgdb.github.io/docs/Configuring-CGDB.html |
| 5 | " Latest Revision: 2024-04-09 |
Riley Bruins | 0a08306 | 2024-06-03 20:40:45 +0200 | [diff] [blame] | 6 | " 2024-05-23 by Riley Bruins <ribru17@gmail.com> ('commentstring') |
Wu, Zhenyu | 1492fe6 | 2024-04-10 22:52:40 +0200 | [diff] [blame] | 7 | |
| 8 | if exists('b:did_ftplugin') |
| 9 | finish |
| 10 | endif |
| 11 | let b:did_ftplugin = 1 |
| 12 | |
| 13 | let s:save_cpoptions = &cpoptions |
| 14 | set cpoptions&vim |
| 15 | |
| 16 | let b:undo_ftplugin = 'setl com< cms<' |
| 17 | |
Riley Bruins | 0a08306 | 2024-06-03 20:40:45 +0200 | [diff] [blame] | 18 | setlocal commentstring=#\ %s |
Wu, Zhenyu | 1492fe6 | 2024-04-10 22:52:40 +0200 | [diff] [blame] | 19 | setlocal comments=:# |
| 20 | |
| 21 | let &cpoptions = s:save_cpoptions |
| 22 | unlet s:save_cpoptions |