deoplete-swift


Ⅰ. 插件描述

Swift completions in Vim using deoplete

Ⅱ. 基本信息

创建日期:  2016-02-26
使用用户:  12
Github星:  24
插件作者:  Lander Brandt

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'landaire/deoplete-swift'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'landaire/deoplete-swift'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'landaire/deoplete-swift'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# deoplete-swift

Adds auto-complete support for the Swift programming language to Vim

Installation

Using your favorite package manager or whatever (idk, you probably know vim
better than I do):

Plug 'landaire/deoplete-swift'

For jumping to placeholders, add the following keymapping to your configuration:

" Jump to the first placeholder by typing `<C-j>`.
autocmd FileType swift imap <buffer> <C-j> <Plug>(deoplete_swift_jump_to_placeholder)

Configuration

Default configuration:

let g:deoplete#sources#swift#source_kitten_binary = '' location of sourcekitten
on your system. This is optional and will be found in your $PATH if not set

TODO:

  • [ ] Add sourcekittendaemon support (#2). This will allow better project-based completion

添加新评论