← Technical

TIL: Abbreviations in Vim

vim has an abbreviation system:

:iabbrev calc calculate

Then, any time you type calc followed by a non-word character in insert mode, it’ll expand to calculate. You can even abbreviate multiple words like :iabbrev JB Jack Benny!

Alternatively, I might use Raycast’s snippets with a keyword to get the same behavior, which has the benefit of also working outside vim.

References