aboutsummaryrefslogtreecommitdiff
path: root/runtime/tools/emoji_list.vim
blob: c335b8c88f22ce5371303763e2d2d47ec5d4067f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
" Script to fill the window with emoji characters, one per line.
" Source this script: :source %

if &modified
  new
else
  enew
endif

lua << EOF
  local lnum = 1
  for c = 0x100, 0x1ffff do
    local cs = vim.fn.nr2char(c)
    if vim.fn.charclass(cs) == 3 then
      vim.fn.setline(lnum, '|' .. cs .. '| ' .. vim.fn.strwidth(cs))
      lnum = lnum + 1
    end
  end
EOF

set nomodified