Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 32 lines (32 sloc) 0.633 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
if did_filetype() " filetype 已经设立..
  finish " ..不需要这些检测
endif
if expand('%:t') =~? '^rfc\d\+'
  setfiletype rfc
  finish
endif
if expand('%:p') =~ '\vnginx.*(conf|sites).*'
  setfiletype nginx
  finish
endif
if expand('%:t') =~ '^\v\.?magic$'
  setfiletype magic
  finish
endif
if getline(1) =~ '^\(\S\+(\d)\).*\1$'
  setfiletype man
  finish
endif
if getline(1) =~ '^#!\s*/usr/bin/tcc\s\+-run'
  setfiletype c
  syn match cCommentL /^\%1l\#\!.*/
  finish
endif
if getline(1) =~ '^#!\s*/usr/bin/sage\s\+-python'
  setfiletype python
  finish
endif
if getline(1) =~ '^#!.*\<io'
  setfiletype io
  finish
endif
Something went wrong with that request. Please try again.