From b6a27cb639f66b5fc0819b77ea5e8d68d107e058 Mon Sep 17 00:00:00 2001 From: Chris Coutinho Date: Thu, 30 Jul 2020 16:05:58 +0200 Subject: [PATCH 1/2] Add support for systemd slice files --- ftdetect/systemd.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/ftdetect/systemd.vim b/ftdetect/systemd.vim index f03fbcb..aac76a8 100644 --- a/ftdetect/systemd.vim +++ b/ftdetect/systemd.vim @@ -6,3 +6,4 @@ au BufNewFile,BufRead *.socket set filetype=systemd au BufNewFile,BufRead *.swap set filetype=systemd au BufNewFile,BufRead *.target set filetype=systemd au BufNewFile,BufRead *.timer set filetype=systemd +au BufNewFile,BufRead *.slice set filetype=systemd From e765baecc8dcb6f6e2e1b66bfd1dd9670e84294c Mon Sep 17 00:00:00 2001 From: Chris Coutinho Date: Sun, 9 Aug 2020 19:35:03 +0200 Subject: [PATCH 2/2] Add additional systemd files, based on systemd.syntax(7) --- ftdetect/systemd.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ftdetect/systemd.vim b/ftdetect/systemd.vim index aac76a8..1a81710 100644 --- a/ftdetect/systemd.vim +++ b/ftdetect/systemd.vim @@ -7,3 +7,9 @@ au BufNewFile,BufRead *.swap set filetype=systemd au BufNewFile,BufRead *.target set filetype=systemd au BufNewFile,BufRead *.timer set filetype=systemd au BufNewFile,BufRead *.slice set filetype=systemd +au BufNewFile,BufRead *.scope set filetype=systemd +au BufNewFile,BufRead *.nspawn set filetype=systemd +au BufNewFile,BufRead *.unit set filetype=systemd +au BufNewFile,BufRead *.link set filetype=systemd +au BufNewFile,BufRead *.netdev set filetype=systemd +au BufNewFile,BufRead *.network set filetype=systemd