Swift filetype plugin for Vim
VimL

README.md

Swift file type plugin for Vim

This is a Vim file type plugin for the Swift programming language.

Features

  • 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.

Installation

Install this plugin with your Vim plugin manager of choice.

NeoBundle

Add the following to your .vimrc:

NeoBundle 'kballard/vim-swift', {
        \ 'filetypes': 'swift',
        \ 'unite_sources': ['swift/device', 'swift/developer_dir']
        \}

Pathogen

Run the following commands in your terminal:

cd ~/.vim/bundle
git clone https://github.com/kballard/vim-swift.git