On 2020-11-16, Anthony Thyssen wrote: > @dkearns No sorry I am not using vim-puppet. It is not part of the normal > vim-enhanced distribution. > > However having a look... > I did have a personal files "vim/ftdetect/puppet.vim" with > > au BufRead,BufNewFile *.pp setf puppet > > in it. This obviously what was being used previously before the system > "filetype.vim" file overrode it for "pascal" > I also have a personal file... "vim/syntax/puppet.vim" providing the > appropriate syntax. > > So I suppose the problem boils down to that this new system "filetype.vim" > seting for pascal, overrides personal "ftdetect" setting.
If you want your personal ftdetect file(s) to override the filetype setting of the system filetype.vim file, then your personal ftdetect file(s) should be using "set filetype", not "setfiletype". See ":help ftdetect. Regards, Gary -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20201117055309.GA16453%40phoenix.
