view runtime/tools/emoji_list.vim @ 32869:47d83ab63764

Translations: Update po files for zh and ja Commit: https://github.com/vim/vim/commit/04510566b10b5552d4ce8ba32e5422e755a239fb Author: K.Takata <kentkt@csc.jp> Date: Sat Aug 19 13:17:43 2023 +0200 Translations: Update po files for zh and ja Update po files by running `make` in `src/po/`. Some po files were out of sync with the files in other encodings. Related: #12749, #12787 closes: #12826 closes: #12840
author Christian Brabandt <cb@256bit.org>
date Sat, 19 Aug 2023 13:30:06 +0200
parents 99ef85ff1af4
children
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()
  var lnum = 1
  for c in range(0x100, 0x1ffff)
    var cs = nr2char(c)
    if charclass(cs) == 3
      setline(lnum, '|' .. cs .. '| ' .. strwidth(cs))
      lnum += 1
    endif
  endfor
enddef

call DoIt()
set nomodified