aboutsummaryrefslogtreecommitdiff
path: root/vim/ftdetect/sh.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/ftdetect/sh.vim')
-rw-r--r--vim/ftdetect/sh.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/ftdetect/sh.vim b/vim/ftdetect/sh.vim
index 1169b744..1427bc03 100644
--- a/vim/ftdetect/sh.vim
+++ b/vim/ftdetect/sh.vim
@@ -42,13 +42,13 @@ autocmd BufNewFile,BufRead
autocmd BufNewFile,BufRead
\ *
\ if !exists('b:is_bash') && !exists('b:is_kornshell')
- \ | if getline(1) =~ '^#!.*bash$'
+ \ | if getline(1) =~# '\m^#!.*\<bash\>'
\ | let b:is_bash = 1
\ | setfiletype sh
- \ | elseif getline(1) =~ '^#!.*ksh$'
+ \ | elseif getline(1) =~# '\m^#!.*\<ksh\>'
\ | let b:is_ksh = 1
\ | setfiletype sh
- \ | elseif getline(1) =~ '^#!.*sh$'
+ \ | elseif getline(1) =~# '\m^#!.*\<sh\>'
\ | let b:is_posix = 1
\ | setfiletype sh
\ | endif