Input methods: Difference between revisions

1,395 bytes added ,  17:47, 23 June 2022
add vim keymap
(vim digraphs)
(add vim keymap)
Line 39: Line 39:


=== vim ===
=== vim ===
You can enter Toaq characters using Ctrl+K followed by two keys: (see <code>:help digraph</code>)
Copy the contents below into a file called <code>toaq.vim</code> inside a folder named <code>keymap</code> in your <code>.vim</code> directory (create it if it doesn’t exist). Then, in insert mode, you may use any of the two-keystroke “combinations” and have them replaced with accented letters on the fly. (See <code>:help mbyte-keymap</code> for more detailed information.)
 
{{details|Toaq vim keymap|<pre>" toaq keymap
" by uakci on 2022-06-23
scriptencoding utf8
let b:keymap_name = "toaq"
loadkeymap
.i i
i ı
// /
'' '
\"\" \"
:: :
?? ?
^^ ^
`` `
\\\\ \\
~~ ~
.. .
.< «
.> »
.{ ‹
.} ›
./ ́
.' ́
." ̈
.: ̈
.? ̉
.^ ̂
.` ̀
.\ ̀
.~ ̃
/A Á
/U Ú
/I Í
/O Ó
/E É
/Y Ý
/a á
/u ú
/i í
/o ó
/e é
/y ý
'A Á
'U Ú
'I Í
'O Ó
'E É
'Y Ý
'a á
'u ú
'i í
'o ó
'e é
'y ý
\"A Ä
\"U Ü
\"I Ï
\"O Ö
\"E Ë
\"Y Ÿ
\"a ä
\"u ü
\"i ï
\"o ö
\"e ë
\"y ÿ
:A Ä
:U Ü
:I Ï
:O Ö
:E Ë
:Y Ÿ
:a ä
:u ü
:i ï
:o ö
:e ë
:y ÿ
?A Ả
?U Ủ
?I Ỉ
?O Ỏ
?E Ẻ
?Y Ỷ
?a ả
?u ủ
?i ỉ
?o ỏ
?e ẻ
?y ỷ
^A Â
^U Û
^I Î
^O Ô
^E Ê
^Y Ŷ
^a â
^u û
^i î
^o ô
^e ê
^y ŷ
`A À
`U Ù
`I Ì
`O Ò
`E È
`Y Ỳ
`a à
`u ù
`i ì
`o ò
`e è
`y ỳ
\\A À
\\U Ù
\\I Ì
\\O Ò
\\E È
\\Y Ỳ
\\a à
\\u ù
\\i ì
\\o ò
\\e è
\\y ỳ
~A Ã
~U Ũ
~I Ĩ
~O Õ
~E Ẽ
~Y Ỹ
~a ã
~u ũ
~i ĩ
~o õ
~e ẽ
~y ỹ
</pre>}}
 
Alternatively, for sporadic usage, you can enter Toaq characters using Ctrl+K followed by two keys: (see <code>:help digraph</code>)
 
{| class="wikitable"
{| class="wikitable"
! Character || Combo
! Character || Combo