Mercurial > vim
comparison runtime/filetype.vim @ 19987:9cbe7ba51ce5 v8.2.0549
patch 8.2.0549: user systemd files not recognized
Commit: https://github.com/vim/vim/commit/3b922f11380c7dbf94ee45bc09d688b772d9707f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 12 12:54:52 2020 +0200
patch 8.2.0549: user systemd files not recognized
Problem: User systemd files not recognized.
Solution: Add filetype patterns. (Kevin Locke, closes https://github.com/vim/vim/issues/5914)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 12 Apr 2020 13:00:07 +0200 |
parents | bceeded72898 |
children | ec40053dd3b5 |
comparison
equal
deleted
inserted
replaced
19986:0bf4688aacc4 | 19987:9cbe7ba51ce5 |
---|---|
1 " Vim support file to detect file types | 1 " Vim support file to detect file types |
2 " | 2 " |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | 3 " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 " Last Change: 2020 Mar 19 | 4 " Last Change: 2020 Apr 12 |
5 | 5 |
6 " Listen very carefully, I will say this only once | 6 " Listen very carefully, I will say this only once |
7 if exists("did_load_filetypes") | 7 if exists("did_load_filetypes") |
8 finish | 8 finish |
9 endif | 9 endif |
1644 au BufNewFile,BufRead */etc/sysctl.conf,*/etc/sysctl.d/*.conf setf sysctl | 1644 au BufNewFile,BufRead */etc/sysctl.conf,*/etc/sysctl.d/*.conf setf sysctl |
1645 | 1645 |
1646 " Systemd unit files | 1646 " Systemd unit files |
1647 au BufNewFile,BufRead */systemd/*.{automount,mount,path,service,socket,swap,target,timer} setf systemd | 1647 au BufNewFile,BufRead */systemd/*.{automount,mount,path,service,socket,swap,target,timer} setf systemd |
1648 " Systemd overrides | 1648 " Systemd overrides |
1649 au BufNewFile,BufRead /etc/systemd/system/*.d/*.conf setf systemd | 1649 au BufNewFile,BufRead */etc/systemd/system/*.d/*.conf setf systemd |
1650 au BufNewFile,BufRead */.config/systemd/user/*.d/*.conf setf systemd | |
1650 " Systemd temp files | 1651 " Systemd temp files |
1651 au BufNewFile,BufRead /etc/systemd/system/*.d/.#* setf systemd | 1652 au BufNewFile,BufRead */etc/systemd/system/*.d/.#* setf systemd |
1653 au BufNewFile,BufRead */.config/systemd/user/*.d/.#* setf systemd | |
1652 | 1654 |
1653 " Synopsys Design Constraints | 1655 " Synopsys Design Constraints |
1654 au BufNewFile,BufRead *.sdc setf sdc | 1656 au BufNewFile,BufRead *.sdc setf sdc |
1655 | 1657 |
1656 " Sudoers | 1658 " Sudoers |