Closed lqueryvg closed 5 years ago
I want to look into this a bit further. I thought that Vim would initialize the b:undo_ftplugin
to a blank string anyway. Looking at Vim's documentation for undo_ftplugin
, it suggests setting it as follows:
let b:undo_ftplugin = "setlocal fo< com< tw< commentstring<"
\ . "| unlet b:match_ignorecase b:match_words b:match_skip"
Perhaps I should use =
to assign, rather than .=
to append.
I have exactly the same problem. With this hack the problem is gone so please let us know if you find that something can go wrong the hack. I' let you know here how it goes for me with the modif.
Thx
I have been experiencing this issue too. Is it there a new release?
I have the same issue! The change suggested by lqueryvg doesn't work for me. Is it ok to just delete the 'Teardown' part of the script?
Simply deleting the "delcommand FoldToggle" solves the problem for me. This does not appear to cause any problems. When I switch between buffers with and without markdown files, the FoldToggle command is only available in the markdown buffers and "foldmethod", "foldtext", and "foldexpr" are correctly reset upon switching from buffers with markdown files to buffers without markdown files.
FWIW, for me, the proposed change by @lqueryvg works.
I've merged in fixes for this. It should be fixed in the current version. Please reopen this issue if you are still experiencing this problem .
I get the following whenever I edit a markdown file:
Might I suggest that you check if
b:undo_ftplugin
exists before appending to it ?The following fixes the problem for me: