From 9c6017bb27a2a79899f040bab1e79bd0a78ca225 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sat, 20 Jan 2024 18:33:31 -0500 Subject: [PATCH] Add skeleton.js --- fake_home/.vim/templates/skeleton.js | 3 +++ fake_home/.vimrc | 1 + 2 files changed, 4 insertions(+) create mode 100644 fake_home/.vim/templates/skeleton.js diff --git a/fake_home/.vim/templates/skeleton.js b/fake_home/.vim/templates/skeleton.js new file mode 100644 index 0000000..553fa0a --- /dev/null +++ b/fake_home/.vim/templates/skeleton.js @@ -0,0 +1,3 @@ +document.addEventListener('DOMContentLoaded', function initJs () { + console.log('Hello, world!') +}) diff --git a/fake_home/.vimrc b/fake_home/.vimrc index da0580d..a74db4c 100644 --- a/fake_home/.vimrc +++ b/fake_home/.vimrc @@ -167,6 +167,7 @@ if has ("autocmd") 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 Makefile 0r ~/.vim/templates/Makefile augroup END endif