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