Mercurial > vim
view runtime/tools/emoji_list.vim @ 31233:d80066065462 v9.0.0950
patch 9.0.0950: the pattern "_szs" matches at EOL
Commit: https://github.com/vim/vim/commit/c96311b5be307f5a1d1b20a0ec930d63964e7335
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Nov 25 21:13:47 2022 +0000
patch 9.0.0950: the pattern "\_s\zs" matches at EOL
Problem: The pattern "\_s\zs" matches at EOL.
Solution: Make the pattern "\_s\zs" match at the start of the next line.
(closes #11617)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 25 Nov 2022 22:15: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