aboutsummaryrefslogtreecommitdiff
path: root/vim/ftdetect/python.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/ftdetect/python.vim')
-rw-r--r--vim/ftdetect/python.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/ftdetect/python.vim b/vim/ftdetect/python.vim
index 50055005..5c4a4a6f 100644
--- a/vim/ftdetect/python.vim
+++ b/vim/ftdetect/python.vim
@@ -4,6 +4,6 @@ autocmd BufNewFile,BufRead
\ setfiletype python
autocmd BufNewFile,BufRead
\ *
- \ if getline(1) =~ '^#!.*python[23]\?$'
+ \ if getline(1) =~# '\m^#!.*\<python[23]\?\>'
\ | setfiletype python
\ | endif