summaryrefslogtreecommitdiffstats
path: root/ftdetect/polyglot.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-24 23:24:42 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-24 23:24:42 +0200
commitd53d2189b92ab8150753201e2e2f8cba14b8edc9 (patch)
tree351ffb188afb7e99aeb377d7b8882a8a0cd4cf77 /ftdetect/polyglot.vim
parenta6a6aeab76bef135d9f76534efa5ee7391c4ed2a (diff)
downloadvim-polyglot-d53d2189b92ab8150753201e2e2f8cba14b8edc9.tar.gz
vim-polyglot-d53d2189b92ab8150753201e2e2f8cba14b8edc9.zip
Add support for .gitignore highlighting
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r--ftdetect/polyglot.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index f1a48357..0f7159c3 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -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 |