[vim/vim] runtime(rmd): force function override (PR #18630)

2 views
Skip to first unread message

Joey Smalen

unread,
Oct 24, 2025, 9:48:15 AMOct 24
to vim/vim, Subscribed

In certain cases, ftplugin gets in a bad state with R Markdown files where:

  • FormatRmd
  • SetRmdCommentStr

give errors on loading new or existing buffers into windows. b:did_ftplugin might not be set, but then again, it also happens on new buffers.

I've only noticed this problem with Quarto/R Markdown files but I haven't identified its pattern yet (or why or when ftplugin goes into a state where it gives those errors), but it might happen with other ftplugins. This is a workaround until I discover what the root cause is.

Screenshot.2025-10-24.at.15.21.04.png (view on web)

My platform:

VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Oct 12 2025 14:37:02) Included patches: 1-1850


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/18630

Commit Summary

  • b7e2cb8 runtime(rmd): force function override

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18630@github.com>

dkearns

unread,
Oct 24, 2025, 10:11:08 AMOct 24
to vim/vim, Subscribed
dkearns left a comment (vim/vim#18630)

Try this patch:

diff --git a/runtime/ftplugin/quarto.vim b/runtime/ftplugin/quarto.vim
index a76bcc2c7..f8b27a1a5 100644
--- a/runtime/ftplugin/quarto.vim
+++ b/runtime/ftplugin/quarto.vim
@@ -1 +1,5 @@
+if exists("b:did_ftplugin")
+  finish
+endif
+
 runtime ftplugin/rmd.vim


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18630/c3443371724@github.com>

Christian Brabandt

unread,
3:33 PM (1 hour ago) 3:33 PM
to vim/vim, Subscribed

Closed #18630 via 89f422d.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18630/issue_event/21342242858@github.com>

Reply all
Reply to author
Forward
0 new messages