aboutsummaryrefslogtreecommitdiff
path: root/runtime/tools/emoji_list.vim
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-08-19 12:26:08 -0600
committerJosh Rahm <rahm@google.com>2022-08-19 13:06:41 -0600
commita7237662f96933efe29eed8212464571e3778cd0 (patch)
tree27930202726b4251437c8cfa53069f65b4db90dc /runtime/tools/emoji_list.vim
parent02292344929069ea63c0bb872cc22d552d86b67f (diff)
parentb2f979b30beac67906b2dd717fcb6a34f46f5e54 (diff)
downloadrneovim-tmp.tar.gz
rneovim-tmp.tar.bz2
rneovim-tmp.zip
Merge branch 'master' of https://github.com/neovim/neovim into rahmtmp
Diffstat (limited to 'runtime/tools/emoji_list.vim')
-rw-r--r--runtime/tools/emoji_list.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/tools/emoji_list.vim b/runtime/tools/emoji_list.vim
new file mode 100644
index 0000000000..c335b8c88f
--- /dev/null
+++ b/runtime/tools/emoji_list.vim
@@ -0,0 +1,21 @@
+" Script to fill the window with emoji characters, one per line.
+" Source this script: :source %
+
+if &modified
+ new
+else
+ enew
+endif
+
+lua << EOF
+ local lnum = 1
+ for c = 0x100, 0x1ffff do
+ local cs = vim.fn.nr2char(c)
+ if vim.fn.charclass(cs) == 3 then
+ vim.fn.setline(lnum, '|' .. cs .. '| ' .. vim.fn.strwidth(cs))
+ lnum = lnum + 1
+ end
+ end
+EOF
+
+set nomodified