view runtime/tools/emoji_list.vim @ 34046:6ffa7c9c0a8d

translation(tr): Improve Turkish documentation (#13800) Commit: https://github.com/vim/vim/commit/5528a7293773d1211459847bb9ad7d8f75944075 Author: Emir SARI <emir_sari@icloud.com> Date: Fri Dec 29 15:30:40 2023 +0000 translation(tr): Improve Turkish documentation (https://github.com/vim/vim/issues/13800) Signed-off-by: Emir SARI <emir_sari@icloud.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 29 Dec 2023 16:45:03 +0100
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