From: Stanislav Asunkin <1353637+stasjok@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:43:30 +0000 (+0200) Subject: runtime(mediawiki): fix typo in doc, test for b:did_ftplugin var X-Git-Tag: v9.1.0674~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd36d6cc7c39f3cfb29818f89f4f9dec2c7c22e4;p=thirdparty%2Fvim.git runtime(mediawiki): fix typo in doc, test for b:did_ftplugin var closes: #15479 Signed-off-by: Stanislav Asunkin <1353637+stasjok@users.noreply.github.com> Signed-off-by: AvidSeeker Signed-off-by: Christian Brabandt --- diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 8e33d0244e..68ea21ea90 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -2376,7 +2376,7 @@ have the following in your .vimrc: > MEDIAWIKI *ft-mediawiki-syntax* -Be default, syntax highlighting includes basic HTML tags like style and +By default, syntax highlighting includes basic HTML tags like style and headers |html.vim|. For strict Mediawiki syntax highlighting: > let g:html_no_rendering = 1 diff --git a/runtime/ftplugin/mediawiki.vim b/runtime/ftplugin/mediawiki.vim index efd2ae5c9b..4618246106 100644 --- a/runtime/ftplugin/mediawiki.vim +++ b/runtime/ftplugin/mediawiki.vim @@ -8,7 +8,7 @@ if exists("b:did_ftplugin") finish endif -let g:did_ftplugin = 1 +let b:did_ftplugin = 1 " Many MediaWiki wikis prefer line breaks only at the end of paragraphs " (like in a text processor), which results in long, wrapping lines.