aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-08-17 11:33:10 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-08-17 13:03:13 +0200
commit89df96b5cf415c5cd56ddb04d823c73670e5ffaa (patch)
tree762149a350d62809b45fc49466b237bdbced17a6
parent172cc23d88585dd7520726c2ebbba4ed7639e348 (diff)
downloadrneovim-89df96b5cf415c5cd56ddb04d823c73670e5ffaa.tar.gz
rneovim-89df96b5cf415c5cd56ddb04d823c73670e5ffaa.tar.bz2
rneovim-89df96b5cf415c5cd56ddb04d823c73670e5ffaa.zip
vim-patch:dd36d6c: runtime(mediawiki): fix typo in doc, test for b:did_ftplugin var
closes: vim/vim#15479 https://github.com/vim/vim/commit/dd36d6cc7c39f3cfb29818f89f4f9dec2c7c22e4 Co-authored-by: Stanislav Asunkin <1353637+stasjok@users.noreply.github.com>
-rw-r--r--runtime/doc/syntax.txt2
-rw-r--r--runtime/ftplugin/mediawiki.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index bb28898133..806cecedbe 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -1904,7 +1904,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.