aboutsummaryrefslogtreecommitdiff
path: root/vim/ftdetect/python.vim
blob: 50055005ba9136baa830251dff605828e84c0edd (plain) (blame)
1
2
3
4
5
6
7
8
9
" Python files
autocmd BufNewFile,BufRead
      \ *.py
      \ setfiletype python
autocmd BufNewFile,BufRead
      \ *
      \ if getline(1) =~ '^#!.*python[23]\?$'
      \ |   setfiletype python
      \ | endif