Vim: set undo_ftplugin and undo_indent variables
The value of these variables is evaluated when the 'filetype' option is changed and should be a command string that will undo any configuration changes that the plugin has made.
See :help undo_ftplugin for details.
Edited by Jonas Hahnfeld