How do I override settings made in a file type plugin in the global
ftplugin directory for all the file types? You can use an autocommand triggered on the FileType event:
au Filetype * set formatoptions=xyz
This should at least be after “filetype on” in your vimrc. Best is to put it in your “myfiletypefile” file, so that it’s always last. If you want to override a setting for a particular filetype, then create a file with the same name as the original filetype plugin in the ~/.vim/after/ftplugin directory For example, to override a setting in the c.vim filetype plugin, create a c.vim file in the ~/.vim/after/ftplugin directory and add your preferences in this file.