RSS Amplifier

Loosed Design & Technology Blog

Neovim

0
Sign in to vote or save

Daniel Tompkins · l-o-o-s-e-d.net

This website is supported entirely by the generosity of its audience. If you enjoy the ideas and inventions shared here, please consider giving back in the form of a one-time or recurring donation. Any amount you gift is sincerely appreciated! Thank you.—l00sed

January 4 2025 Daniel Tompkins

Archive KB

Find my Neovim dot­files on GitHub .

Com­mands

Toggle Wrapped Lines

Same func­tion in Vim­Script (for Vim)

Toggle wrapped lines in Neovim (Lua)

lua

local M = {} -- Toggle Wrap function M.toggle_wrap() if vim.o.wrap then vim.o.wrap = false vim.o.virtualedit = 'all' else vim.o.wrap = true vim.o.virtualedit = '' vim.o.display = 'lastline' end end return M

Read the original on l-o-o-s-e-d.net

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.