insert template when opening new .sh files
This commit is contained in:
parent
1d92f8f57c
commit
d87a377ccf
7
init.vim
7
init.vim
|
@ -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!
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
#!/bin/sh
|
Loading…
Reference in New Issue