summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-19 19:49:44 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-19 19:49:44 +0200
commit86bf33aa3bdaa836fbd1537d1ba6a63b58b088bd (patch)
tree2cc5d66c583963d063adc5097f61afa6b645b64f
parentb64fcedd82f188e7951585c6dda5efc5f4a497b2 (diff)
downloadvim-polyglot-86bf33aa3bdaa836fbd1537d1ba6a63b58b088bd.tar.gz
vim-polyglot-86bf33aa3bdaa836fbd1537d1ba6a63b58b088bd.zip
Use conf for /etc/hosts, fixes #595
-rw-r--r--ftdetect/polyglot.vim2
-rw-r--r--packages.yaml1
2 files changed, 2 insertions, 1 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 83198ebc..02554c1f 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -2545,7 +2545,7 @@ if !has_key(s:disabled_packages, 'alsaconf')
endif
if !has_key(s:disabled_packages, 'conf')
- au BufNewFile,BufRead *.conf,auto.master,config setf conf
+ au BufNewFile,BufRead *.conf,*/etc/hosts,auto.master,config setf conf
endif
if !has_key(s:disabled_packages, 'master')
diff --git a/packages.yaml b/packages.yaml
index 4590b31b..dc24c858 100644
--- a/packages.yaml
+++ b/packages.yaml
@@ -1958,6 +1958,7 @@ filetypes:
filenames:
- auto.master
- config
+ - '*/etc/hosts'
---
name: b
remote: vim/vim:runtime