Skip to content

Small vim scripts for writing IPA and other special characters

License

Notifications You must be signed in to change notification settings

LukeSmithxyz/vimling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Luke's vim helpers

Just some little things I source in my vimrc. Moving these from the voidrice repo for extensibility's sake. Mostly language-related.

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 grave accents (à)
  • ^ gives you circumflex accents (â)
  • ~ gives you tildes (ã)
  • : gives you macrons (ā)
  • " gives you umlauts (ä)
  • . gives you under dot (ḍ)
  • , gives you cedilla (ç)

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

Contributors 4

  •  
  •  
  •  
  •