emoji_list.vim 388 B

12345678910111213141516171819202122
  1. " Script to fill the window with emoji characters, one per line.
  2. " Source this script: :source %
  3. if &modified
  4. new
  5. else
  6. enew
  7. endif
  8. lua << EOF
  9. local lnum = 1
  10. for c = 0x100, 0x1ffff do
  11. local cs = vim.fn.nr2char(c)
  12. if vim.fn.charclass(cs) == 3 then
  13. vim.fn.setline(lnum, '|' .. cs .. '| ' .. vim.fn.strwidth(cs))
  14. lnum = lnum + 1
  15. end
  16. end
  17. EOF
  18. set nomodified