jj.vim 638 B

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