deadkeys and ipa update

This commit is contained in:
Luke Smith 2018-05-20 10:06:39 -07:00
parent 6e1134afab
commit eebf02ada1
2 changed files with 222 additions and 169 deletions

View file

@ -1,3 +1,10 @@
" Installation
" Source the file wherever you put it:
" so ~/.vim/luke/deadkeys.vim
" Map ToggleDeadKeys to whatever you want:
" nm <F7> :call ToggleDeadKeys()<CR>
let g:DeadKeysOn=0 let g:DeadKeysOn=0
function! ToggleDeadKeys() function! ToggleDeadKeys()
@ -69,8 +76,68 @@ function! DeadKeys()
imap 'u ú imap 'u ú
imap 'U Ú imap 'U Ú
imap '<space> ' imap '<space> '
" under dot
imap .D
imap .d
imap .H
imap .h
imap .L
imap .l
imap .M
imap .m
imap .N
imap .n
imap .R
imap .r
imap .G
imap .g
imap .S
imap .s
imap .T
imap .t
" tilde
imap ~a ã
imap ~A Ã
imap ~e
imap ~E
imap ~i ĩ
imap ~I Ĩ
imap ~o õ
imap ~O Õ
imap ~u ũ
imap ~U Ũ
imap ~n ñ
imap ~N Ñ
" caron
imap >A Ǎ
imap >a ǎ
imap >C Č
imap >c č
imap >E Ě
imap >e ě
imap >G Ǧ
imap >g ǧ
imap >I Ǐ
imap >i ǐ
imap >O Ǒ
imap >o ǒ
imap >R Ř
imap >r ř
imap >S
imap >s
imap >U Ǔ
imap >u ǔ
imap >V Ǚ
imap >v ǚ
imap >Z Ž
imap >z ž
endfunction "deadkeys() endfunction "deadkeys()
function! DeadKeysOff() function! DeadKeysOff()
echo "Dead Keys: Off" echo "Dead Keys: Off"
let g:DeadKeysOn=0 let g:DeadKeysOn=0
@ -133,4 +200,61 @@ function! DeadKeysOff()
iunmap 'u iunmap 'u
iunmap 'U iunmap 'U
iunmap '<space> iunmap '<space>
" under dot
iunmap .D
iunmap .d
iunmap .H
iunmap .h
iunmap .L
iunmap .l
iunmap .M
iunmap .m
iunmap .N
iunmap .n
iunmap .R
iunmap .r
iunmap .G
iunmap .g
iunmap .S
iunmap .s
iunmap .T
iunmap .t
"tilde
iunmap ~a
iunmap ~A
iunmap ~e
iunmap ~E
iunmap ~i
iunmap ~I
iunmap ~o
iunmap ~O
iunmap ~u
iunmap ~U
iunmap ~n
" caron
iunmap >A
iunmap >a
iunmap >C
iunmap >c
iunmap >E
iunmap >e
iunmap >G
iunmap >g
iunmap >I
iunmap >i
iunmap >O
iunmap >o
iunmap >R
iunmap >r
iunmap >S
iunmap >s
iunmap >U
iunmap >u
iunmap >V
iunmap >v
iunmap >Z
iunmap >z
endfunction endfunction

View file

@ -1,257 +1,186 @@
"m̥ let g:IPAOn=0
function! ToggleIPA()
if !g:IPAOn
call IPA()
else
cal IPAOff()
endif
endfunction
"n̼ function! IPA()
echo "IPA macros activated"
let g:IPAOn=1
imap ;nn ɲ̊
imap ;gn ɲ
imap ;ng ŋ
imap ;' ʔ
imap ;sh ʃ
imap ;zh ʒ
imap ;xi ɕ
imap ;zi ʑ
imap ;ph ɸ
imap ;bh β
imap ;th θ
imap ;dh ð
imap ;cc ç
imap ;jj ʝ
imap ;gh ɣ
imap ;xx χ
imap ;fr ʁ
imap ;HH ħ
imap ;hh ɦ
imap ;vv ʋ
imap ;er ɹ
imap ;fl ɾ
imap ;bb ʙ
imap ;ih ɨ
imap ;ii ɪ
imap ;eu ɯ̽
imap ;uu ʊ
imap ;uh ə
imap ;eh ɛ
imap ;oe œ
imap ;au ɔ
imap ;ae æ
imap ;aa ɐ
imap ;OE ɶ
imap ;ah ɑ
imap ;ba ɒ
endfunction
"n̥ function! IPAOff()
echo "IPA macros off."
"ɳ̊ let g:IPAOn=0
iunmap ;nn
iunmap ;gn
iunmap ;ng
inoremap ;nn ɲ̊ iunmap ;'
iunmap ;sh
inoremap ;gn ɲ iunmap ;zh
iunmap ;xi
"ŋ̊ iunmap ;zi
iunmap ;ph
inoremap ;ng ŋ iunmap ;bh
iunmap ;th
iunmap ;dh
iunmap ;cc
"p̪ iunmap ;jj
iunmap ;gh
iunmap ;xx
iunmap ;fr
iunmap ;HH
iunmap ;hh
iunmap ;vv
iun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
inoremap ;ii ɪ
"ʏ "ʏ
"ɪ̈ "ɪ̈
"ʊ̈ "ʊ̈
inoremap ;eu ɯ̽
inoremap ;uu ʊ
"e̞ "e̞
"ø̞ "ø̞
inoremap ;uh ə
"ɵ̞ "ɵ̞
"ɤ̞ "ɤ̞
"o̞ "o̞
inoremap ;eh ɛ
inoremap ;oe œ
inoremap ;au ɔ
inoremap ;ae æ
inoremap ;aa ɐ
"ɞ̞ "ɞ̞
inoremap ;OE ɶ
"ɒ̈ "ɒ̈
"m̥
inoremap ;ah ɑ
"n̼
inoremap ;ba ɒ "n̥
"ɳ̊
"ŋ̊
"p̪