diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-25 19:53:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-25 19:53:24 +0200 |
commit | 73b4465ba7f170c5a1701ad908144970e758b1f5 (patch) | |
tree | 7464f69adeaadad6894816649411119d47150eaa /runtime | |
parent | 801ab069341c8652680d63c174530fd4feb2911e (diff) | |
download | vim-git-73b4465ba7f170c5a1701ad908144970e758b1f5.tar.gz |
patch 8.2.1055: no filetype set for pacman config filesv8.2.1055
Problem: No filetype set for pacman config files.
Solution: Recognize pacman.conf and *.hook. (Guido Cella, closes #6335)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index cd1c509d6..a6c895654 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1134,8 +1134,17 @@ au BufNewFile,BufRead *.ora setf ora " Packet filter conf au BufNewFile,BufRead pf.conf setf pf +" Pacman Config (close enough to dosini) +au BufNewFile,BufRead */etc/pacman.conf setf dosini + +" Pacman hooks +au BufNewFile,BufRead *.hook + \ if getline(1) == '[Trigger]' | + \ setf dosini | + \ endif + " Pam conf -au BufNewFile,BufRead */etc/pam.conf setf pamconf +au BufNewFile,BufRead */etc/pam.conf setf pamconf " Pam environment au BufNewFile,BufRead pam_env.conf,.pam_environment setf pamenv |