Thursday, August 30, 2012

Re: ASCIIfication (removal of accent, cedilla, etc)

Or slightly simpler:

function! AEIOU() "! :help [=* equivalence class
for x in split("aeiouny", '\zs')
execute ':%s/[[='.x.'=]]/'.x.'/g'
endfor
endf "usage :silent! call AEIOU()

"! :help digraph-table
" Test on:
"? ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ

Bill

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment