File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22" Language: roff(7)
33" Maintainer: Aman Verma
44" Homepage: https://github.com/a-vrma/vim-nroff-ftplugin
5+ " Document: https://www.gnu.org/software/groff/manual/groff.html
56" Previous Maintainer: Chris Spiegel <cspiegel@gmail.com>
6- " 2024 May 24 by Riley Bruins <ribru17@gmail.com> ('commentstring')
7+ " Last Changes:
8+ " 2024 May 24 by Riley Bruins <ribru17@gmail.com> ('commentstring' #14843)
9+ " 2025 Feb 12 by Wu, Zhenyu <wuzhenyu@ustc.edu> (matchit configuration #16619)
710
811if exists (" b:did_ftplugin" )
912 finish
@@ -13,5 +16,17 @@ let b:did_ftplugin = 1
1316setlocal commentstring = .\\ \" \ % s
1417setlocal comments = :.\\ \"
1518setlocal sections += Sh
19+ setlocal define = .\s * de
1620
17- let b: undo_ftplugin = ' setlocal commentstring< comments< sections<'
21+ let b: undo_ftplugin = ' setlocal commentstring< comments< sections< define<'
22+
23+ if exists (' loaded_matchit' )
24+ let b: match_words = ' ^\.\s*ie\>:^\.\s*el\>'
25+ \ . ' ,^\.\s*LB\>:^\.\s*LI\>:^\.\s*LE\>'
26+ \ . ' ,^\.\s*TS\>:^\.\s*TE\>'
27+ \ . ' ,^\.\s*PS\>:^\.\s*P[EF]\>'
28+ \ . ' ,^\.\s*EQ\>:^\.\s*EN\>'
29+ \ . ' ,^\.\s*[\>:^\.\s*]\>'
30+ \ . ' ,^\.\s*FS\>:^\.\s*FE\>'
31+ let b: undo_ftplugin .= " | unlet b:match_words"
32+ endif
You can’t perform that action at this time.
0 commit comments