Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
I've just fixed a small problem regarding to the use of
aug[roup]
in ftdetct.It seems that that's already surrounded by an internal group by default, then if we define a new group for those
au[cmd]
(s) in ftdetct, that causes a problem at filetype detection in other subsequent plugins.There are similar fixes also in other vim plugins:
And addition to that, there is an issue related to this topic, for Vint:
Problem
In my case, when I open a Racket file (
xxx.rkt
), the use ofaug[roup]
here causes an error like below (maybe racket is the next to purescript in my loaded vim plugins, in alphabetical order?):This is related to wlangstroth/vim-racket. The error message itself is unfortunately not so helpful, but the Vim doc of :ftdetct mentions like so:
We usally need to surround
au[tocmd]s
with anaug[roup]
, but likely don't need so in theftdetct
directory.UPDATED
Apparently, it seems that the reason of the above error is that the use of
aug[roup]
here causes unexpected unloading of another plugin. In the case on my env (for vim-racket), this part (b:undo_ftplugin
) is evaluated.Changes
Thus, this pull request simply removes an unnecessary aug[roup] in ftdetct, and adds a comment to ignore Vint's rule
ProhibitAutocmdWithNoGroup
here.I hope that makes sense!
Checklist:
generate-doc.sh
to re-generate the documentation