Also configure jsx, tsx, and go in vimrc
This commit is contained in:
Sage Vaillancourt 2024-01-21 22:05:03 -05:00
parent 0429b0354d
commit dc81332d01
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,9 @@
local table = {
["hello"] = "world!",
["goodnight"] = "moon",
twoPlusTwo = 4
}
for key,val in pairs(table) do
print(string.format("%s: %s", key, val))
end

View File

@ -164,11 +164,15 @@ if has ("autocmd")
autocmd BufNewFile *.sh 0r ~/.vim/templates/skeleton.sh
autocmd BufNewFile *.py 0r ~/.vim/templates/skeleton.py
autocmd BufNewFile *.rb 0r ~/.vim/templates/skeleton.rb
autocmd BufNewFile *.lua 0r ~/.vim/templates/skeleton.lua
autocmd BufNewFile *.md 0r ~/.vim/templates/skeleton.md
autocmd BufNewFile *.html 0r ~/.vim/templates/skeleton.html
autocmd BufNewFile *.java 0r ~/.vim/templates/skeleton.java
autocmd BufNewFile *.js 0r ~/.vim/templates/skeleton.js
autocmd BufNewFile *.jsx 0r ~/.vim/templates/skeleton.jsx
autocmd BufNewFile *.tsx 0r ~/.vim/templates/skeleton.tsx
autocmd BufNewFile *.json 0r ~/.vim/templates/skeleton.json
autocmd BufNewFile *.go 0r ~/.vim/templates/skeleton.go
autocmd BufNewFile Makefile 0r ~/.vim/templates/Makefile
autocmd BufNewFile Dockerfile 0r ~/.vim/templates/Dockerfile
augroup END