aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Misbakh-Soloviov <mva@gentoo.org>2020-11-15 07:06:07 +0700
committerVadim Misbakh-Soloviov <mva@gentoo.org>2021-02-07 07:25:11 +0700
commit1b6d372fd407c82de927dcd669b901d55c488c52 (patch)
treeff8d0e5b87dab0f8f9811f9f2f05988d628e027c
parentrepos.conf also uses ini-like syntax (diff)
downloadgentoo-syntax-1b6d372fd407c82de927dcd669b901d55c488c52.tar.gz
gentoo-syntax-1b6d372fd407c82de927dcd669b901d55c488c52.tar.bz2
gentoo-syntax-1b6d372fd407c82de927dcd669b901d55c488c52.zip
env and bashrc would benefit from ft=ebuild
Signed-off-by: Vadim Misbakh-Soloviov <mva@gentoo.org>
-rw-r--r--ftdetect/gentoo.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim
index 0c0db40..b8c14ac 100644
--- a/ftdetect/gentoo.vim
+++ b/ftdetect/gentoo.vim
@@ -90,6 +90,10 @@ au BufNewFile,BufRead metadata.xml
au BufNewFile,BufRead {*/portage/repos.conf,*/portage/repos.conf/*.conf}
\ set filetype=dosini
+" portage/env/*
+au BufNewFile,BufRead */portage/{env/*,bashrc}
+ \ set filetype=ebuild
+
" guidexml
au BufNewFile,BufRead *.xml
\ if getline(1) =~ "<!DOCTYPE \\(guide\\|news\\|mainpage\\|book\\|sections\\|dynamic\\|inserts\\) " ||