spim


Ⅰ. 插件描述

Simple Pinyin Input Method for VIM

Ⅱ. 基本信息

创建日期:  2016-11-25
使用用户:  1
Github星:  1
插件作者:  lxhillwind

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# SPIM
Simple Pinyin Input Method for VIM

Feature

(1) press <Ctrl-Space> to enter pinyin mode (the main mode);

(2) when input pinyin, press <Space> to select a character;

(3) press <Ctrl-u> to delete to begin-of-line;

(4) press <Ctrl-w> to delete a word (CJK character won't work);

(5) press <Ctrl-h> / <BS> to delete a character;

(6) press 'i' to enter literal mode; every letter inputted will be
added to buffer; press <Ctrl-m> / <Enter> to quit;

(7) press 'u' to enter unicode mode; four letters inputted will be
translated to unicode-char;

(8) press <Ctrl-m> / <Enter> to push inputted text to current
buffer;

(9) press <Ctrl-[> / <Esc> anytime will bring you to Insert
Mode with all contents you've inputted lost; you can find them in register
@p then.

Note

This plugin will:

  • introduce function SPIM() to your vim session;
  • use keybinding <C-Space> in Insert Mode.

License

MIT

添加新评论