1
0
mirror of https://github.com/amix/vimrc synced 2025-07-10 03:25:00 +08:00

add cocoa.vim & swift.vim

This commit is contained in:
huhuaishun
2017-03-27 15:44:07 +08:00
committed by Huaishun Hu
parent 6f466ade5d
commit 7f9ab057ba
52 changed files with 12415 additions and 2 deletions

View File

@ -0,0 +1,12 @@
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