summaryrefslogtreecommitdiff
path: root/scripts.vim
blob: 0c99d8b49f56da672868f9c02d060e65b7238bca (plain)
1
2
3
4
5
6
7
8
9
10
" This detects the presence of the ipxe file magic string on the first line
" of a file whenever vim opens it.

if did_filetype()   " filetype already set..
    finish      " ..don't do these checks
endif
if getline(1) =~? '^#!ipxe'
    setfiletype ipxe
    set filetype=ipxe
endif