diff options
Diffstat (limited to 'scripts.vim')
-rw-r--r-- | scripts.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts.vim b/scripts.vim new file mode 100644 index 0000000..0c99d8b --- /dev/null +++ b/scripts.vim @@ -0,0 +1,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 |