Add .sh template and update .vimrc
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
#!/bin/sh
|
||||||
@@ -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