0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00
vim/runtime/tools/emoji_list.vim

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
411 B
VimL
Raw Normal View History

" Script to fill the window with emoji characters, one per line.
" Source this script: :source %
if &modified
new
else
enew
endif
" Use a compiled Vim9 function for speed
def DoIt()
2020-12-10 21:11:27 +01:00
var lnum = 1
for c in range(0x100, 0x1ffff)
2020-12-10 21:11:27 +01:00
var cs = nr2char(c)
if charclass(cs) == 3
setline(lnum, '|' .. cs .. '| ' .. strwidth(cs))
lnum += 1
endif
endfor
enddef
call DoIt()
set nomodified