mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
82b02ae2f2
Problem: Some runtime files no longer spark joy. Solution: Kondo the place up. Still sparks _some_ joy (moved to new `runtime/scripts` folder): * `macros/less.*` * `mswin.vim` * `tools/emoji_list.lua` No longer sparks joy (removed): * `macmap.vim` (gvimrc file; not useful in Nvim) * `tools/check_colors.vim` (no longer useful with new default colorscheme and treesitter) * `macros/editexisting.vim` (throws error on current Nvim) * `macros/justify.vim` (obsolete shim for `packadd! justify`) * `macros/matchit.vim` (same) * `macros/shellmenu.vim` (same) * `macros/swapmous.vim` (same)
20 lines
406 B
Lua
20 lines
406 B
Lua
-- Script to fill the window with emoji characters, one per line.
|
|
-- Source this script: :source %
|
|
|
|
if vim.bo.modified then
|
|
vim.cmd.new()
|
|
else
|
|
vim.cmd.enew()
|
|
end
|
|
|
|
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, string.format('|%s| %d', cs, vim.fn.strwidth(cs)))
|
|
lnum = lnum + 1
|
|
end
|
|
end
|
|
|
|
vim.bo.modified = false
|