pgreek.vim


Ⅰ. 插件描述

Easily-customizable Vim keymap for typing polytonic Greek.

Ⅱ. 基本信息

创建日期:  2013-10-09
使用用户:  1
Github星:  1
插件作者:  Sakamoto Noriaki

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

pgreek.vim

Easily-customizable Vim keymap for typing polytonic Greek.

Install

If you use NeoBundle, Vundle and so on, add line like following to your .vimrc.

NeoBundle 'na4zagin3/pgreek.vim'

Or, copy keymap/pgreek_utf-8.vim into your $VIMRUNTIME/keymap (e.g. ~/.vim/keymap)

How to Use

To use this keymap, set keymap to 'pgreek'. Please check encoding is surely UTF-8.

:set keymap=pgreek

Example

εἰμί: e>im;i, ei]mi/
ἄϊδι: <;a:idi, a[/i"di
τὸ ζῷον: t`o z~v|on, to\ zv=|on
Ϙόρινθος: Qg;orinuow, Qgo/rinuow

Default Keymap

Alphabets

LetterNameKeymap
Α αAlphaA a
Β βBetaB b
Γ γGammaG g
Δ δDeltaD d
Ε εEpsilonE e
Ϝ ϝDigamma, WawQf qf
Ͷ ͷ Qv qv
Ζ ζZetaZ z
Η ηEtaH h
Ͱ ͱHetaQh qh
Θ θThetaU u
Ι ιIotaI i
Κ κKappaK k
Λ λLambdaL l
Μ μMuM m
Ν νNuN n
Ξ ξXiJ j
Ο οOmicronO o
Π πPiP p
Ϻ ϻSanQs qs
Ϸ ϸShoQx qx
Ϙ ϙQoppaQg qg
Ϟ ϟ Qq qq
Ρ ρRhoR r
Σ σ ςSigmaS s w
Τ τTauT t
Υ υYpsilonY y
Φ φPhiF f
Χ χChiX x
Ψ ψPsiC c
Ω ωOmegaV v
Ϡ ϡSampiQt qt
Ͳ ͳ Qu qu
Ϛ ϛStigmaQj qj
ϳJotqy

Diacritics

DiacriticPrefix StylePostfix Style
Accute;/
Grave ` \
Circumflex~=
Smooth breathing<[
Rough breathing>]
Diaeresis:"
Iota subscript(None)|
Breve(None)^
Macron(None)-

At this version, there are rules among base letter and diacritics.

  • Aspiration (smooth and rougnt breathing) is anterior to accent (accute, grave, and circumflex).
  • Length mark (breve and macron) follows the base letter or located at last of the sequence. Length mark cannot cooccurrent with any other diacritics, because of constraint of the implimentation.
  • Iota subscript is posterior to the base letter, aspiration, accent.
  • Diaeresis is anterior to iota subscript. Diaeresis is anterior to the base letter, or follows length mark that follows the base letter.

Symbols

LetterNameKeymap
:ColonQ
;Greek Question markq
·Interpunct;.
᾽Greek Apostrofos'
«Open quotation<< ;<
»Close quotation>> ;>
–En-dash--
–Em-dash---
ϗKai&&
ʹNumeral Mark;#
͵Lower numeral Mark;##

添加新评论