diff 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
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1,7 +1,7 @@
 " Vim support file to detect file types
 "
 " Maintainer:	Bram Moolenaar <Bram@vim.org>
-" Last Change:	2020 Mar 19
+" Last Change:	2020 Apr 12
 
 " Listen very carefully, I will say this only once
 if exists("did_load_filetypes")
@@ -1646,9 +1646,11 @@ au BufNewFile,BufRead */etc/sysctl.conf,
 " Systemd unit files
 au BufNewFile,BufRead */systemd/*.{automount,mount,path,service,socket,swap,target,timer}	setf systemd
 " Systemd overrides
-au BufNewFile,BufRead /etc/systemd/system/*.d/*.conf	setf systemd
+au BufNewFile,BufRead */etc/systemd/system/*.d/*.conf	setf systemd
+au BufNewFile,BufRead */.config/systemd/user/*.d/*.conf	setf systemd
 " Systemd temp files
-au BufNewFile,BufRead /etc/systemd/system/*.d/.#*	setf systemd
+au BufNewFile,BufRead */etc/systemd/system/*.d/.#*	setf systemd
+au BufNewFile,BufRead */.config/systemd/user/*.d/.#*	setf systemd
 
 " Synopsys Design Constraints
 au BufNewFile,BufRead *.sdc			setf sdc