Mercurial > vim
view runtime/tools/emoji_list.vim @ 21981:48e914e637c5 v8.2.1540
patch 8.2.1540: the user cannot try out emoji character widths
Commit: https://github.com/vim/vim/commit/98945560c1ae6e2ddee820a7de718a36e3f4b6e5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 29 16:41:27 2020 +0200
patch 8.2.1540: the user cannot try out emoji character widths
Problem: The user cannot try out emoji character widths.
Solution: Move the emoji script to the runtime/tools directory.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 29 Aug 2020 16:45:03 +0200 |
parents | src/testdir/emoji_list.vim@85add08e6a2d |
children | 99ef85ff1af4 |
line wrap: on
line source
" 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() let lnum = 1 for c in range(0x100, 0x1ffff) let cs = nr2char(c) if charclass(cs) == 3 setline(lnum, '|' .. cs .. '| ' .. strwidth(cs)) lnum += 1 endif endfor enddef call DoIt() set nomodified