aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: efef03802a400e02bb8335d76e87593ae73428b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Vim Armenian Keymaps
====================

This is a set of Vim keymaps for the Armenian alphabet. The keymaps can be used
to type Armenian characters in Insert mode while retaining standard
functionality in Normal mode. For more information on Vim keymaps, see
`:help mbyte-keymap`.

`armenian-eastern_utf-8.vim` and `armenian-western_utf-8.vim` are included in
the [Vim source code][1]. The `extra` directory contains additional alternate
keymaps.

Diagrams of the [Eastern][2] and [Western][3] layouts are available on
Wikimedia.

This repository is hosted on [git.linskey.org](https://git.linskey.org/vim-armenian-keymaps)
and mirrored on [GitHub](https://github.com/blinskey/vim-armenian-keymaps).

Requirements and Installation
-----------------------------

Your Vim installation must be compiled with the `+keymap` feature. Use
`:version` to check which features are available.

Your version of Vim may come with the primary keymaps preinstalled. If they are
not installed or you'd like to use one of the `extra` keymaps, copy or link
your desired keymap(s) to `~/.vim/keymap/` or another location in Vim's runtime
path (see `:h runtimepath`).

To use a keymap, you’ll need to enable it in your `.vimrc` using the `keymap`
option. For example, to use the Western Armenian keymap, ensure that
`armenian-western_utf-8.vim` is in your Vim runtime path, then enable the
keymap in your `.vimrc`:

    set keymap=armenian-western_utf-8

You can switch between Armenian and Latin characters in Insert mode using
<kbd>Ctrl-^</kbd> (i.e., <kbd>Ctrl-Shift-6</kbd> on a standard English keyboard
layout). To disable the keymap at Vim startup so that Insert mode
uses Latin characters by default, add the following lines to your `.vimrc`:

    set iminsert=0
    set imsearch=0

[1]: https://github.com/vim/vim
[2]: https://commons.wikimedia.org/wiki/File:KB_Eastern_Armenian.svg
[3]: https://commons.wikimedia.org/wiki/File:KB_Western_Armenian.svg