til

Today I learned.

#4

Neovim blog by Michael Fussenegger

#3

Load a per-project Neovim config with exrc

:help exrc

init.lua
vim.opt.exrc = true
vim.opt.secure = true

Files: .nvim.lua > .nvimrc > .exrc

-- .nvim.lua (.nvimrc and .exrc are Vimscript)
vim.print("hello from local rc")
#2

SuttaCentral

Collection of Buddhist scriptures: https://suttacentral.net/?lang=en

I liked this sutta: DN 16, section 1.6.2

#1

grep -b shows the byte offset of matches

Terminal window
$ printf 'foo bar\nsay hello\n' > notes.txt
$ grep -b hello notes.txt
8:say hello
$ grep -ob hello notes.txt
12:hello
$ tail -c +13 notes.txt
hello

Offsets are 0-based. Alone, -b gives the offset of the matching line; with -o it gives the offset of the match itself. tail -c +N is 1-based, so jump to offset + 1.

ugrep prints the match offset even without -o.