SwiftPlayground.vim icon indicating copy to clipboard operation
SwiftPlayground.vim copied to clipboard

Play with Swift code in Vim!

SwiftPlayground.vim

Play with Swift code in Vim!

Preview

Usage

It compiles the playground when you save.

Note: Code Completions, Errors, and Warnings are optionally powered by iCompleteMe.

Installation

Use your plugin manager of choice.

  • Pathogen
    • git clone https://github.com/jerrymarino/SwiftPlayground.vim ~/.vim/bundle/SwiftPlayground.vim
  • Vundle
    • Add Bundle 'https://github.com/jerrymarino/SwiftPlayground.vim' to .vimrc
    • Run :BundleInstall
  • NeoBundle
    • Add NeoBundle 'https://github.com/jerrymarino/SwiftPlayground.vim' to .vimrc
    • Run :NeoBundleInstall
  • vim-plug
    • Add Plug 'https://github.com/jerrymarino/SwiftPlayground.vim' to .vimrc
    • Run :PlugInstall

Ecosystem

The following libraries use the framework provided by SwiftPlayground.vim to add similar functionality to other editors: