Skip to content

Commit

Permalink
add Swift support
Browse files Browse the repository at this point in the history
  • Loading branch information
kaochenlong committed Jun 23, 2014
1 parent 9b47c49 commit 1a0f08f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,6 @@
[submodule "bundle/vim-addon-mw-utils"]
path = bundle/vim-addon-mw-utils
url = https://github.com/MarcWeber/vim-addon-mw-utils.git
[submodule "bundle/vim-swift"]
path = bundle/vim-swift
url = git@github.com:toyamarinyon/vim-swift.git
1 change: 1 addition & 0 deletions bundle/vim-swift
Submodule vim-swift added at a0f827
6 changes: 6 additions & 0 deletions plugin/after/ftdetect/swift.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
" Swift
if executable("xcrun")
autocmd BufRead,BufNewFile *.swift map <F5> :% w !xcrun swift -i %<CR>
else
autocmd BufRead,BufNewFile *.swift map <F5> :echo "you need to install Xcode first!"<CR>
endif

0 comments on commit 1a0f08f

Please sign in to comment.