configs  Artifact [a1c76113b9]

Artifact a1c76113b958e402dc7334c79c9e9a8e6d1bdfd05090d62d510a84c0fb1f4e15:


autocmd BufNewFile,BufRead *.swift set filetype=swift
autocmd BufRead * call s:Swift()
function! s:Swift()
  if !empty(&filetype)
    return
  endif

  let line = getline(1)
  if line =~ "^#!.*swift"
    setfiletype swift
  endif
endfunction