| version 1.11, 2003/02/28 05:43:24 |
version 1.12, 2003/03/06 20:09:11 |
|
|
| " File: templatefile.vim |
" File: templatefile.vim |
| " Maintainer: Lubomir Host 'rajo' <8host AT pauli.fmph.uniba.sk> |
" Maintainer: Lubomir Host 'rajo' <8host AT pauli.fmph.uniba.sk> |
| " Last Change: 2003/01/10 |
" Last Change: 2003/01/10 |
| " Version: $Platon: vimconfig/vim/plugin/templatefile.vim,v 1.10 2003/01/16 12:19:32 rajo Exp $ |
" Version: $Platon: vimconfig/vim/plugin/templatefile.vim,v 1.11 2003/02/28 05:43:24 rajo Exp $ |
| " Thanks: |
" Thanks: |
| " Scott Urban: First version of templatefile.vim |
" Scott Urban: First version of templatefile.vim |
| " http://vim.sourceforge.net/scripts/script.php?script_id=198 |
" http://vim.sourceforge.net/scripts/script.php?script_id=198 |
| Line 100 function! LoadTemplateFile() |
|
| Line 100 function! LoadTemplateFile() |
|
| silent! execute ":call " . template_func . "()" |
silent! execute ":call " . template_func . "()" |
| endif |
endif |
| endif |
endif |
| setlocal modified |
|
| endfunction |
endfunction |
| |
|
| function! LoadTemplateFileConfirm(filename) |
function! LoadTemplateFileConfirm(filename) |
| Line 113 function! LoadTemplateFileConfirm(filena |
|
| Line 112 function! LoadTemplateFileConfirm(filena |
|
| \ "&no\n") |
\ "&no\n") |
| if choice == 1 |
if choice == 1 |
| execute "0r " . a:filename |
execute "0r " . a:filename |
| |
setlocal modified |
| endif |
endif |
| elseif g:load_templates == "yes" |
elseif g:load_templates == "yes" |
| execute "0r " . a:filename |
execute "0r " . a:filename |
| |
setlocal modified |
| endif |
endif |
| else |
else |
| execute "0r " . a:filename |
execute "0r " . a:filename |
| |
setlocal modified |
| endif |
endif |
| endif |
endif |
| endfunction |
endfunction |