vim-swift


Ⅰ. 插件描述

Swift filetype plugin for Vim

Ⅱ. 基本信息

创建日期:  2014-06-07
使用用户:  41
Github星:  113
插件作者:  Lily Ballard

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'kballard/vim-swift-back-to-december'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'kballard/vim-swift-back-to-december'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'kballard/vim-swift-back-to-december'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/kballard/vim-swift

Ⅳ. 文档说明

# 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

添加新评论