Add support for .gitignore highlighting

This commit is contained in:
Adam Stankiewicz
2020-09-24 23:24:42 +02:00
parent a6a6aeab76
commit d53d2189b9
8 changed files with 63 additions and 23 deletions

View File

@@ -2023,6 +2023,10 @@ if !has_key(s:disabled_packages, 'tads')
au! BufNewFile,BufRead *.t call polyglot#DetectTFiletype()
endif
if !has_key(s:disabled_packages, 'gitignore')
au BufNewFile,BufRead {.,}gitignore set ft=gitignore
endif
au! BufNewFile,BufRead,StdinReadPost * if expand("<afile>") !~ g:ft_ignore_pat |