sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

greek_mac.vim : Vim keymap to write traditional (“polytonic”) Greek in the Mac OS way.

 script karma  Rating 0/0, Downloaded by 116    Comments, bugs, improvements  Vim wiki

created by
Christos Chryssochoidis
 
script type
utility
 
description
Vim keymap that enables one to write traditional (“polytonic”) Greek.

The keymap is based on the corresponding Mac OS keyboard layout for polytonic Greek.
All diacritics except the “breve below” are typed before the corresponding letter.
In case of two diacritics the order is not important.
The code is also available at "https://github.com/christosc/greek_mac"; .

Accents
-----------
acute         ;
grave         ]
circumflex  [


Smooth breathing
------------------------
smooth         '
+ acute        /
+ grave        =
+ circumflex  -


Rough breathing
----------------------
rough          "
+ acute        ?
+ grave        +
+ circumflex  _


Iota subscript
------------------
iota subscript                      {
+ acute                              ; {
+ grave                              ] {
+ smooth                           ' {
+ smooth and acute          / {
+ smooth and grave         = {
+ smooth and circumflex  - {
+ rough                            " {
+ rough and acute           ? {
+ rough and grave           + {
+ rough and circumflex    _ {


Diaeresis/Dialytika
-------------------------
diaeresis  :
+ acute    :;
+ grave    :]


Breve Below
------------------
breve below ~
ε̮                  e~
ι̮                  i~


Punctuation
----------------
Middle dot (“ano teleia”)   ; . or W
Apostrophe                      '
Left quote                        <<
Right quote                      >>
en dash                            --
em dash                           ---


Symbols
------------
Euro sign                      E$
Numerical Sign             ;#
Lower numerical sign   ;##
Stigma (Ϛ)                    #ST
Small stigma (ϛ)           #st
Koppa (Ϟ)                     #Q
Small koppa (ϟ)            #q
Sampi (Ϡ)                     #SP
Small sampi (ϡ)            #sp
Digamma (Ϝ)                #G
Kai ligature (ϗ)             &&
Theta symbol (ϑ)         ;u
Kappa symbol (ϰ)        ;k
Beta symbol (ϐ)           ;b
Epsilon symbol (ϵ)       !e
Phi symbol (ϕ)             ;f
Pi symbol (ϖ)              ;p
Rho symbol (ϱ)            ;r

You can find more keyboard shortcuts by looking at the code of the keymap.
 
install details
Copy the file greek_mac.vim to your home .vim  keymap directory
  (~/.vim/keymap/). If the directory does not exist, create it.

Add to .vimrc the following:

set keymap=greek_mac
set iminsert=0
set imsearch=-1

Set your terminal or gvim to use a font that includes the “extended” Greek characters and symbols.
Examples of suitable fonts include the following:

Menlo
Dejavu Sans mono
Consolas

You can change keyboard with Ctrl-^ in insert and command-line modes.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
greek_mac.vim 1.0.4 2017-03-22 7.0 Christos Chryssochoidis Streamline shortcuts for lunate epsilon.
greek_mac.vim 1.0.3 2017-01-08 7.0 Christos Chryssochoidis Add breve below combining mark.
greek_mac.vim 1.0.2 2017-01-05 7.0 Christos Chryssochoidis Minor improvements on symbols.
greek_mac.vim 1.0.1 2017-01-04 7.0 Christos Chryssochoidis Improve a little on arithmetic symbols.
greek_mac.vim 1.0 2017-01-02 7.0 Christos Chryssochoidis Initial upload
ip used for rating: 54.205.60.171

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo