Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Set b:undo_ftplugin to revert filetype settings
This commit adds a definition for b:undo_ftplugin (see `:help undo_ftplugin`) that reverts local options to their defaults and clears away buffer maps and variables. Without this, if the same buffer is changed to a different filetype having loaded this plugin, then option changes, buffer-local maps, and buffer variables remain set, potentially interfering with configuration for the new filetype, or breaking ftplugin scripts that assume the variable has been set.
- Loading branch information
Showing
1 changed file
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters