insert template when opening new .sh files

This commit is contained in:
Ray Elliott 2020-03-21 21:33:23 +00:00
parent 1d92f8f57c
commit d87a377ccf
2 changed files with 8 additions and 0 deletions

View File

@ -429,6 +429,13 @@ iabbrev ct'' content-type: '';
"----------------------------------------------------------------------------}}} "----------------------------------------------------------------------------}}}
" #autocommands {{{ " #autocommands {{{
" template files {{{
augroup templates
autocmd!
autocmd BufNewFile *.sh 0read ~/.config/nvim/templates/template.sh | normal G
augroup END
" }}}
" persistent folds {{{ " persistent folds {{{
augroup AutoSaveFolds augroup AutoSaveFolds
autocmd! autocmd!

1
templates/template.sh Normal file
View File

@ -0,0 +1 @@
#!/bin/sh