" EasyAccents.vim: converts a` a' etc during insert mode " " Author: Charles E. Campbell, Jr. (PhD) " Date: Nov 18, 2003 " Version: 6 " License: GPL (Gnu Public License) " " Usage: " " These maps all work during insert mode. " Type a' a` A' c, etc and accented characters result. " ([aeioubcAEIOUBC], then accent) " " If you want a vowel (or [bBcC]) to be followed by an accent, " use a backslash to escape it: a\' for example will become a' " " Sourcing this file acts as a toggle to switch EasyAccents on " and off. By default, the mapping ea will toggle " EasyAccents, too, by calling ToggleEasyAccents . " " If g:EasyAccents_VowelFirst is set to zero in your <.vimrc>, " then 'a `a `A ,b ,c etc. " will map to á à À ß ç " (accent, then [aeioubcAEIOUBC]) " " If g:EasyAccents_VowelFirst is set to one in your <.vimrc> (also default) " then a' a` A` b, c, etc. " will map to á à À ß ç " ([aeioubcAEIOUBC], then accent) " " New with version 6: " Also a@ A@ D@ e@ E@ N~ p@ u@ x@ " map to å Å Ð æ Æ Ñ Þ µ × " " Caveat: the maps will not work if "set paste" is on, so that's " another way to bypass EasyAccents as needed. " " Installation: " " EasyAccents is now designed to be toggled on and off. When on " it may interfere with programming languages which often use " characters such as single-quotes, backquotes, etc. " " "For I am convinced that neither death nor life, neither angels nor demons, " neither the present nor the future, nor any powers, nor height nor depth, " nor anything else in all creation, will be able to separate us from the " love of God that is in Christ Jesus our Lord." Rom 8:38 " " History: " v6 Nov 18, 2003 : maps for a@ A@ D@ e@ E@ N~ p@ u@ x@ now included " v5 Aug 21, 2003 : * included g:EasyAccents_VowelFirst option " * fixed insert vs append bug " ======================================================================= " prevent re-load if !exists("g:loaded_EasyAccents") let g:loaded_EasyAccents= 0 if !exists("g:EasyAccents_VowelFirst") let g:EasyAccents_VowelFirst= 1 endif if !hasmapto('ToggleEasyAccents') map ea ToggleEasyAccents imap ea InsToggleEasyAccents endif map