robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Christian Clasonfix(runtime): clean up one-off scripts82b02ae2f2

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