New answers tagged

1

To avoid false positives with a pattern like *markdown*, use * and then filter in the code that you run from the autocmd: autocmd FileType * call s:CheckMarkdown() function s:CheckMarkdown() if match(&filetype, '\v<markdown>') != -1 return endif " ... run your desired side-effects endfunction


Top 50 recent answers are included