2

I'd like to use VimOutliner with files ending in .ol.txt. This entry in ~/.vim/ftdetect/votl.vim doesn't do that

au! BufRead,BufNewFile *.ol.txt   setfiletype votl

Is there a [pattern] for this?

3
  • remove the ! and try it
    – Mass
    May 17, 2020 at 14:13
  • au BufRead,BufNewFile *.ol.txt setfiletype votl didn't work :(
    – Paul
    May 17, 2020 at 14:16
  • 1
    See question linked by @Mass. Use set filetype=votl in your autocmd, instead of setfiletype votl. The former is stronger and will override the latter.
    – filbranden
    May 17, 2020 at 14:45

0

Browse other questions tagged or ask your own question.