Home

About

Archive

Knowledge Base

Graph

Portfolio

Contact

live

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 donation. Any amount you gift is sincerely appreciated! Thank you.


—l00sed


VenmoPaypal

Neovim

10:32PMJanuary 4 2025Daniel Tompkins
codesysadmin

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)
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
lua

Comments loading...

Previous
Next logo centered over a background of formatted code
Next.js
02 01 2025kb
In this page I share my experience using Next without Vercel hosting— and its associated costs ($$$), instead hosting on a gen...
codesysadmin
Next
A close-up photograph of a silicon chip. It's a microcontroller with jumper cables and header sockets.
Mi­cro­con­trollers
08 07 2020kb
Some microcontrollers are used together to form single-board computers (SBCs). These are computers on a single chip!...
codeelectronics

LEARN

Archive

Bookmarks Dump

Contribute

Graph

Knowledge Base

Reading List

META

Atom

Privacy Policy

RSS

Sitemap

Terms & Conditions

SOCIAL

Bluesky

GitHub

Hacker News

Instagram

LinkedIn

Reddit

Stack Overflow

YouTube

WHOAMI

About

Email

Keybase

Portfolio

Uses

2018-2025 · l-o-o-s-e-d.net