Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37863333
en ru br
ALT Linux repositórios
S:1.5-alt4
5.0: 1.5-alt4
4.1: 1.5-alt4
4.0: 1.5-alt3
3.0: 1.5-alt1

Group :: Editores
RPM: vim-plugin-templatefile

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: templatefile-1.5-alt-disable-default.patch
Download


--- templatefile-1.5/vim/plugin/templatefile.vim.orig	2005-05-06 00:06:37 +0400
+++ templatefile-1.5/vim/plugin/templatefile.vim	2005-05-07 19:31:37 +0400
@@ -16,6 +16,10 @@
 " 		If exists enviroment variable $VIMTEMPLATE, templates are loaded from
 " 		this directory.
 
+if !exists("g:load_templates")
+	finish
+endif
+
 augroup TemplateSystem
 	autocmd!
 	au BufNewFile * call LoadTemplateFile()
@@ -33,16 +37,16 @@
 	endif
 	let extension = expand ("%:e")
 	if extension == ""
-		let template_file = "templates/" . expand("%:t")
+		let template_file = "/templates/" . expand("%:t")
 		let template_func = "TemplateFileFunc_noext_" . expand("%:t")
 	else
-		let template_file = "templates/skel." . extension
+		let template_file = "/templates/skel." . extension
 		let template_func = "TemplateFileFunc_" . extension
 	endif
 	if filereadable(expand($VIMTEMPLATE . template_file))
 		call LoadTemplateFileConfirm($VIMTEMPLATE . template_file)
-	elseif filereadable(expand($HOME . "/.vim/" . template_file))
-		call LoadTemplateFileConfirm($HOME . "/.vim/" . template_file)
+	elseif filereadable(expand($HOME . "/.vim" . template_file))
+		call LoadTemplateFileConfirm($HOME . "/.vim" . template_file)
 	elseif filereadable(expand($VIM . template_file))
 		call LoadTemplateFileConfirm($VIM . template_file)
 	elseif filereadable(expand($VIMRUNTIME . template_file))
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009