From: "A. J. Mechelynck", Oct 13, 2005 2:17 PM

> Tim Chase wrote:

> >

[snip]

> >

> >

http://eyegene.ophthy.med.umich.edu/unicode/> >

> > It also might save your the trouble of redescribing Unicoding for

> > each of your responses :)

[snip]

>

> And no, I don't have a Unicode boilerplate text yet. (Maybe I

> should) ;-)

Here's an interesting bit you can add, I wrote a function that neatly

prints unicode characters (the first 65,375) just this week:

function! PrintUnicode()

let myenc = &encoding

set encoding=utf8

" limitations

let min = 32

let max = 65375

let str = ""

let numlen = strlen(Nr2Hex(max))

let num = ""

let wid = 37

let i = 0

while min+i < max

if i % (wid - strlen(max)) == 0

echo str

let num = min+i

" convert to hex

let num = Nr2Hex(num)

" pad

while strlen(num) < numlen

let num = " " . num

endwhile

let str = num . ": "

endif

let str = str . nr2char(min+i)

let i = i + 1

endwhile

" print remainder

echo str

let &encoding = myenc

endfunction

See :help eval-examples for an example of dependancy Nr2Hex().

--

Steve Hall [ digitect mindspring com ]