Adrià Vilanova Martínez | 60b712e | 2024-01-30 01:49:53 +0100 | [diff] [blame^] | 1 | " jjdescription filetype plugin |
| 2 | " Language: jjdescription file |
| 3 | " Maintainer: Adrià Vilanova <me@avm99963.com> |
| 4 | " Source: Based on ftplugin/gitcommit.vim |
| 5 | " Last Change: 2024 Jan 30 |
| 6 | |
| 7 | " Only do this when not done yet for this buffer |
| 8 | if (exists("b:did_ftplugin")) |
| 9 | finish |
| 10 | endif |
| 11 | |
| 12 | let b:did_ftplugin = 1 |
| 13 | |
| 14 | setlocal nomodeline tabstop=8 formatoptions+=tl textwidth=72 |
| 15 | setlocal formatoptions-=c formatoptions-=r formatoptions-=o formatoptions-=q formatoptions+=n |
| 16 | setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}]\\s\\+\\\|^\\s*[-*+]\\s\\+ |
| 17 | |
| 18 | let b:undo_ftplugin = 'setl modeline< tabstop< formatoptions< tw< com< cms< formatlistpat<' |
| 19 | |
| 20 | let &l:comments = ':JJ: ' |
| 21 | let &l:commentstring = 'JJ: %s' |