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