]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(mediawiki): fix typo in doc, test for b:did_ftplugin var
authorStanislav Asunkin <1353637+stasjok@users.noreply.github.com>
Wed, 14 Aug 2024 12:43:30 +0000 (14:43 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 14 Aug 2024 12:43:30 +0000 (14:43 +0200)
closes: #15479

Signed-off-by: Stanislav Asunkin <1353637+stasjok@users.noreply.github.com>
Signed-off-by: AvidSeeker <avidseeker7@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/syntax.txt
runtime/ftplugin/mediawiki.vim

index 8e33d0244e5859cbae428761da6402d1b92be982..68ea21ea90aba757786131435b854320c3ce8429 100644 (file)
@@ -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
index efd2ae5c9b05c71cd5e9905842b06d4cf65158e0..4618246106506513766dd0c3ce0e69b64c725ce3 100644 (file)
@@ -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.