Add .sh template and update .vimrc
This commit is contained in:
1
.vim/template/production.sh
Normal file
1
.vim/template/production.sh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#!/bin/sh
|
||||||
4
.vimrc
4
.vimrc
@@ -48,6 +48,10 @@ function LoadPerlTemplate()
|
|||||||
0r ~/.vim/template/production.pl
|
0r ~/.vim/template/production.pl
|
||||||
normal Gdd
|
normal Gdd
|
||||||
endfunction
|
endfunction
|
||||||
|
function LoadShellTemplate()
|
||||||
|
0r ~/.vim/template/production.sh
|
||||||
|
normal Gdd
|
||||||
|
endfunction
|
||||||
|
|
||||||
autocmd BufNewFile *.html call LoadHTMLTemplate()
|
autocmd BufNewFile *.html call LoadHTMLTemplate()
|
||||||
autocmd BufNewFile *.pl call LoadPerlTemplate()
|
autocmd BufNewFile *.pl call LoadPerlTemplate()
|
||||||
|
|||||||
Reference in New Issue
Block a user