Ⅰ. 插件描述
All the non-syntax-coloring bits from lilyball/vim-swiftⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'kballard/vim-swift-extra'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'kballard/vim-swift-extra'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'kballard/vim-swift-extra'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/kballard/vim-swift-extra
Ⅳ. 文档说明
# Swift file type plugin for Vim
This is a [Vim][] file type plugin for the [Swift][] programming language.
This does not include syntax-coloring, as it's meant to be used by people
who are using another syntax coloring plugin, such as the one in the [swift
repo][]. If you want syntax coloring, please use [lilyball/vim-swift][].
Features
- 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-extra for more details.
Installation
Install this plugin with your Vim plugin manager of choice.
[NeoBundle][]
Add the following to your .vimrc:
NeoBundle 'lilyball/vim-swift-extra', {
\ '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/lilyball/vim-swift-extra.git