aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/tar.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/autoload/tar.vim')
-rw-r--r--runtime/autoload/tar.vim76
1 files changed, 0 insertions, 76 deletions
diff --git a/runtime/autoload/tar.vim b/runtime/autoload/tar.vim
index e495e8262a..d7d1d8399e 100644
--- a/runtime/autoload/tar.vim
+++ b/runtime/autoload/tar.vim
@@ -735,82 +735,6 @@ fun! s:Rmdir(fname)
" call Dret("Rmdir")
endfun
-" ---------------------------------------------------------------------
-" tar#Vimuntar: installs a tarball in the user's .vim / vimfiles directory {{{2
-fun! tar#Vimuntar(...)
-" call Dfunc("tar#Vimuntar() a:0=".a:0." a:1<".(exists("a:1")? a:1 : "-n/a-").">")
- let tarball = expand("%")
-" call Decho("tarball<".tarball.">")
- let tarbase = substitute(tarball,'\..*$','','')
-" call Decho("tarbase<".tarbase.">")
- let tarhome = expand("%:p")
- if has("win32") || has("win95") || has("win64") || has("win16")
- let tarhome= substitute(tarhome,'\\','/','g')
- endif
- let tarhome= substitute(tarhome,'/[^/]*$','','')
-" call Decho("tarhome<".tarhome.">")
- let tartail = expand("%:t")
-" call Decho("tartail<".tartail.">")
- let curdir = getcwd()
-" call Decho("curdir <".curdir.">")
- " set up vimhome
- if a:0 > 0 && a:1 != ""
- let vimhome= a:1
- else
- let vimhome= vimball#VimballHome()
- endif
-" call Decho("vimhome<".vimhome.">")
-
-" call Decho("curdir<".curdir."> vimhome<".vimhome.">")
- if simplify(curdir) != simplify(vimhome)
- " copy (possibly compressed) tarball to .vim/vimfiles
-" call Decho(netrw#WinPath(g:tar_copycmd)." ".shellescape(tartail)." ".shellescape(vimhome))
- call system(netrw#WinPath(g:tar_copycmd)." ".shellescape(tartail)." ".shellescape(vimhome))
-" call Decho("exe cd ".fnameescape(vimhome))
- exe "cd ".fnameescape(vimhome)
- endif
-" call Decho("getcwd<".getcwd().">")
-
- " if necessary, decompress the tarball; then, extract it
- if tartail =~ '\.tgz'
- if executable("gunzip")
- silent exe "!gunzip ".shellescape(tartail)
- elseif executable("gzip")
- silent exe "!gzip -d ".shellescape(tartail)
- else
- echoerr "unable to decompress<".tartail."> on this system"
- if simplify(curdir) != simplify(tarhome)
- " remove decompressed tarball, restore directory
-" call Decho("delete(".tartail.".tar)")
- call delete(tartail.".tar")
-" call Decho("exe cd ".fnameescape(curdir))
- exe "cd ".fnameescape(curdir)
- endif
-" call Dret("tar#Vimuntar")
- return
- endif
- else
- call vimball#Decompress(tartail,0)
- endif
- let extractcmd= netrw#WinPath(g:tar_extractcmd)
-" call Decho("system(".extractcmd." ".shellescape(tarbase.".tar").")")
- call system(extractcmd." ".shellescape(tarbase.".tar"))
-
- " set up help
- if filereadable("doc/".tarbase.".txt")
-" call Decho("exe helptags ".getcwd()."/doc")
- exe "helptags ".getcwd()."/doc"
- endif
-
- if simplify(tarhome) != simplify(vimhome)
- " remove decompressed tarball, restore directory
- call delete(vimhome."/".tarbase.".tar")
- exe "cd ".fnameescape(curdir)
- endif
-
-" call Dret("tar#Vimuntar")
-endfun
-
" =====================================================================
" Modelines And Restoration: {{{1
let &cpo= s:keepcpo