This is a Vim file type plugin for the Swift programming language.
- Full syntax coloring for Swift (including support for folding).
- Helper commands for running Swift scripts and printing various compilation stages, including LLVM IR and assembly.
- Full support for compiling/running iOS scripts using the iOS Simulator.
- Supports multiple installations of Xcode.
See :help ft-swift
for more details.
Install this plugin with your Vim plugin manager of choice.
Add the following to your .vimrc
:
NeoBundle 'kballard/vim-swift', {
\ 'filetypes': 'swift',
\ 'unite_sources': ['swift/device', 'swift/developer_dir']
\}
Run the following commands in your terminal:
cd ~/.vim/bundle
git clone https://github.com/kballard/vim-swift.git