runtime(groff,nroff): improve ftplugin

- set options in ftplugin but not in syntax
- implement ftplugin/groff.vim (wrapper of ftplugin/nroff.vim)

closes: #17174

Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Eisuke Kawashima
2025-04-24 22:26:02 +02:00
committed by Christian Brabandt
parent f102f4c2e8
commit e36a931d9b
4 changed files with 29 additions and 14 deletions

View File

@ -4,6 +4,7 @@
" Previous Maintainer: Pedro Alejandro López-Valencia <palopezv@gmail.com>
" Previous Maintainer: Jérôme Plût <Jerome.Plut@ens.fr>
" Last Change: 2021 Mar 28
" 2025 Apr 24 by Eisuke Kawashima (move options from syntax to ftplugin #17174)
"
" {{{1 Todo
"
@ -40,19 +41,6 @@ if exists("nroff_space_errors")
syn match nroffError /\s\+$/
syn match nroffSpaceError /[.,:;!?]\s\{2,}/
endif
"
"
" {{{1 Special file settings
"
" {{{2 ms exdented paragraphs are not in the default paragraphs list.
"
setlocal paragraphs+=XP
"
" {{{2 Activate navigation to preprocessor sections.
"
if exists("b:preprocs_as_sections")
setlocal sections=EQTSPS[\ G1GS
endif
" {{{1 Escape sequences
" ------------------------------------------------------------