sponsor Vim development Vim logo Vim Book Ad

intermediate Tip #130: disabling default ftplugins

 tip karma   Rating 2/2, Viewed by 682 

created:   October 8, 2001 5:05      complexity:   intermediate
author:   Benji Fisher      as of Vim:   5.7

     For an overview of ftplugins (filetype plugins) see

:help ftplugins

If you want to disable all ftplugins, or disable a particular default ftplugin, see

:help :filetype
:help ftplugin-overrule

If you have your own ftplugins, and you want to disable all the default ones, then
do NOT include a check for b:did_ftplugin in your ftplugin files, and add the line

:autocmd BufEnter * let b:did_ftplugin = 1

to your VIMRC file, BEFORE the ":filetype ftplugin on" line.

 rate this tip  Life Changing Helpful Unfulfilling 

<<Removing automatic comment leaders | Scroll alternate window >>

Additional Notes

[email protected], October 8, 2001 5:06
Oops:  that should have been "as of Vim 6.0"!
If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to [email protected] after searching the archive. Help Bram help Uganda.
Sponsored by Web Concept Group Inc. SourceForge Logo