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
|
||||
abbreviate (R) ©
|
||||
abbreviate (TM) ™
|
||||
for text, result in pairs(abbreviations) do
|
||||
vim.cmd.abbreviate(text, result)
|
||||
end
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue