blob: cc5d700a3009527ffbf985fc2a4f761cd3abcd08 [file] [log] [blame]
Gregory Anders6a4ea472024-05-08 20:17:43 +02001" Vim filetype plugin
2" Language: jj description
3" Maintainer: Gregory Anders <greg@gpanders.com>
4" Last Change: 2024 May 8
5
6if exists('b:did_ftplugin')
7 finish
8endif
9let b:did_ftplugin = 1
10
11" Use the same formatoptions and textwidth as the gitcommit ftplugin
12setlocal nomodeline formatoptions+=tl textwidth=72
13setlocal formatoptions-=c formatoptions-=r formatoptions-=o formatoptions-=q formatoptions+=n
14setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}]\\s\\+\\\|^\\s*[-*+]\\s\\+
15
16setlocal comments=b:JJ:
17setlocal commentstring=JJ:\ %s
18
19let b:undo_ftplugin = 'setl modeline< formatoptions< textwidth< formatlistpat< comments< commentstring<'