robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
82b02ae2f2
master
1-- Script to fill the window with emoji characters, one per line. 2-- Source this script: :source % 3 4if vim . bo . modified then 5vim . cmd . new () 6else 7vim . cmd . enew () 8end 9 10local lnum =1 11for c =0x100 , 0x1ffff do 12local cs =vim . fn . nr2char ( c ) 13if vim . fn . charclass ( cs ) == 3 then 14vim . fn . setline ( lnum , string . format ( '|%s| %d' , cs , vim . fn . strwidth ( cs ))) 15lnum =lnum + 1 16end 17end 18 19vim . bo . modified =false