vimling


Ⅰ. 插件描述

Small vim scripts for writing IPA and other special characters

Ⅱ. 基本信息

创建日期:  2018-09-08
使用用户:  50
Github星:  13
插件作者:  Luke Smith

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Luke's vim helpers

Just some little things I source in my vimrc. Moving these from the voidrice repo for extensibility's sake. Mostly language-related.

Who's who?

deadkeys.vim

A script modeled off one on the vim wiki by Max Baker, but with more deadkeys and a toggling command.

This gives you a function ToggleDeadKeys() that will, as its name suggest, make ', ", ~ and : into keys that can be combined with other letters to give you accents, specifically:

  • ' gives you acute accents (á)
  • ~ gives you tildes (ã)
  • ` gives you grave accents (à)
  • : gives you macrons (ā)
  • " gives you umlauts (ä)

These will all work with most vowels and some consonants if the combination is commonly used.

ipa.vim

Adjustable bindings for International Phonetic Alphabet characters. Can be toggled with ToggleIPA().

prose.vim

A prose mode.

Installing

Install with your vim plugin manager, then manually assign the functions to what you want in your ~/.vimrc. Examples:

nm <leader><leader>d :call ToggleDeadKeys()<CR>
imap <leader><leader>d <esc>:call ToggleDeadKeys()<CR>a
nm <leader><leader>i :call ToggleIPA()<CR>
imap <leader><leader>i <esc>:call ToggleIPA()<CR>a
nm <F8> :call ToggleProse()<CR>

添加新评论