Open text front and center in a window 80
columns wide.
12345678901234567890123456789012345678901234567890123456789012345678901234567890
Read along wrapping text:
newsflash.mp4
Install this plugin using a plugin manager of choice and toggle
the plugin:
local newsflash = require("newsflash")
vim.keymap.set("n", "<leader>q", newsflash.toggle)
Configurations to cursor movement are not done with this plugin!
Jumping "up" or "down" relative lines with wrapped text is confusing when some lines are skipped.
These mappings jump between lines one at a time:
vim.keymap.set("n", "j", "gj")
vim.keymap.set("v", "j", "gj")
vim.keymap.set("n", "k", "gk")
vim.keymap.set("v", "k", "gk")
Going to the "start" or "end" of a line that spans multiple rows often misses the mark.
These mappings go to the shown break in the line:
vim.keymap.set("n", "$", "g$")
vim.keymap.set("v", "$", "g$")
vim.keymap.set("n", "0", "g0")
vim.keymap.set("v", "0", "g0")
vim.keymap.set("n", "g$", "$")
vim.keymap.set("v", "g$", "$")
vim.keymap.set("n", "g0", "0")
vim.keymap.set("v", "g0", "0")