Skip to content

Small vim scripts for writing IPA and other special characters

License

Notifications You must be signed in to change notification settings

alex-raw/vimling

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Vim IPA bindings

Extended IPA character mappings. Added common symbols for Germanic languages, cardinal vowels, stress marks and length marks. More extensions are planned. Based on Luke Smith's vimling.

Who's who?

deadkeys.vim

A script modeled off one on the vim wiki by Max Baker, but with more deadkeys and a toggling command.

This gives you a function ToggleDeadKeys() that will, as its name suggest, make ', ", ~ and : into keys that can be combined with other letters to give you accents, specifically:

  • ' gives you acute accents (á)
  • ~ gives you tildes (ã)
  • ` gives you grave accents (à)
  • : gives you macrons (ā)
  • " gives you umlauts (ä)

These will all work with most vowels and some consonants if the combination is commonly used.

ipa.vim

Adjustable bindings for International Phonetic Alphabet characters. Can be toggled with ToggleIPA().

prose.vim

A prose mode.

Installing

Install with your vim plugin manager, then manually assign the functions to what you want in your ~/.vimrc. Examples:

nm <leader><leader>d :call ToggleDeadKeys()<CR>
imap <leader><leader>d <esc>:call ToggleDeadKeys()<CR>a
nm <leader><leader>i :call ToggleIPA()<CR>
imap <leader><leader>i <esc>:call ToggleIPA()<CR>a
nm <F8> :call ToggleProse()<CR>

About

Small vim scripts for writing IPA and other special characters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%