home: vim: abbreviations: use lua
This makes it less repetitive.
This commit is contained in:
parent
39c2e5db8c
commit
e599a97e45
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue