parent
0429b0354d
commit
dc81332d01
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue