aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ftdetect/gentoo.vim')
-rw-r--r--ftdetect/gentoo.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim
index ba425fe..305d567 100644
--- a/ftdetect/gentoo.vim
+++ b/ftdetect/gentoo.vim
@@ -34,7 +34,7 @@ au BufNewFile,BufRead /etc/init.d/*
\ set filetype=gentoo-init-d |
au BufNewFile,BufRead /*/files/*
- \ if (getline(1) ==? "#!/sbin/runscript") |
+ \ if (getline(1) =~? "#!/sbin/\\(runscript\\|openrc-run\\)") |
\ set filetype=gentoo-init-d |
\ endif