1
2
3
4
5
6
7
8
9
10
11
12
|
--- filetype.vim.old Thu Sep 27 09:36:02 2001
+++ filetype.vim Wed Oct 17 07:26:31 2001
@@ -951,6 +951,9 @@
au BufNewFile,BufRead /etc/profile,.profile*,*.sh,*.env call SetFileTypeSH(getline(1))
au BufNewFile,BufRead .login*,.cshrc*,csh.cshrc,csh.login,csh.logout,.tcshrc*,*.csh,*.tcsh,.alias setf csh
+" Gentoo ebuilds are actually bash scripts
+au BufNewFile,BufRead *.ebuild call SetFileTypeSH("bash")
+
fun! SetFileTypeSH(name)
if a:name =~ '\<ksh\>'
let b:is_kornshell = 1
|