home: vim: abbreviations: use lua

This makes it less repetitive.
This commit is contained in:
Bruno BELANYI 2023-05-06 18:17:16 +01:00
parent 39c2e5db8c
commit e599a97e45

View file

@ -1,5 +1,11 @@
" A few useful sets of abbreviations lua << EOF
local abbreviations = {
-- A few things that are hard to write in ASCII
["(R)"] = "©",
["(TM)"] = "™",
}
" A few things that are hard to write in ASCII for text, result in pairs(abbreviations) do
abbreviate (R) © vim.cmd.abbreviate(text, result)
abbreviate (TM) end
EOF