summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-12 12:54:52 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-12 12:54:52 +0200
commit3b922f11380c7dbf94ee45bc09d688b772d9707f (patch)
treebf7eaf911fa85256f14db7f8cb07e9067c641b5a /runtime
parent08938eeba463e98d23ba7b88e81bd252c981d235 (diff)
downloadvim-git-3b922f11380c7dbf94ee45bc09d688b772d9707f.tar.gz
patch 8.2.0549: user systemd files not recognizedv8.2.0549
Problem: User systemd files not recognized. Solution: Add filetype patterns. (Kevin Locke, closes #5914)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/filetype.vim8
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 4f2fd2552..0898a185b 100644
--- 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,*/etc/sysctl.d/*.conf setf sysctl
" 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