0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

More runtime file updates.

This commit is contained in:
Bram Moolenaar
2010-07-28 18:17:41 +02:00
parent 6e202e52b7
commit 477db060eb
10 changed files with 64 additions and 41 deletions

View File

@@ -1,7 +1,7 @@
" netrw.vim: Handles file transfer and remote directory listing across " netrw.vim: Handles file transfer and remote directory listing across
" AUTOLOAD SECTION " AUTOLOAD SECTION
" Date: Jul 27, 2010 " Date: Jul 27, 2010
" Version: 139 " Version: 140
" Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM> " Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
" GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim " GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim
" Copyright: Copyright (C) 1999-2010 Charles E. Campbell, Jr. {{{1 " Copyright: Copyright (C) 1999-2010 Charles E. Campbell, Jr. {{{1
@@ -22,7 +22,7 @@
if &cp || exists("g:loaded_netrw") if &cp || exists("g:loaded_netrw")
finish finish
endif endif
let g:loaded_netrw = "v139" let g:loaded_netrw = "v140"
if v:version < 702 if v:version < 702
echohl WarningMsg echohl WarningMsg
echo "***warning*** this version of netrw needs vim 7.2" echo "***warning*** this version of netrw needs vim 7.2"

View File

@@ -1,7 +1,7 @@
" tar.vim: Handles browsing tarfiles " tar.vim: Handles browsing tarfiles
" AUTOLOAD PORTION " AUTOLOAD PORTION
" Date: Dec 28, 2009 " Date: Jul 27, 2010
" Version: 24 " Version: 25
" Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM> " Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
" License: Vim License (see vim's :help license) " License: Vim License (see vim's :help license)
" "
@@ -22,7 +22,7 @@
if &cp || exists("g:loaded_tar") if &cp || exists("g:loaded_tar")
finish finish
endif endif
let g:loaded_tar= "v24" let g:loaded_tar= "v25"
if v:version < 702 if v:version < 702
echohl WarningMsg echohl WarningMsg
echo "***warning*** this version of tar needs vim 7.2" echo "***warning*** this version of tar needs vim 7.2"
@@ -164,6 +164,9 @@ fun! tar#Browse(tarfile)
elseif tarfile =~# '\.lzma$' elseif tarfile =~# '\.lzma$'
" call Decho("3: exe silent r! lzma -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - ") " call Decho("3: exe silent r! lzma -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - ")
exe "silent r! lzma -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - " exe "silent r! lzma -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - "
elseif tarfile =~# '\.\(xz\|txz\)$'
" call Decho("3: exe silent r! xz --decompress --stdout -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - ")
exe "silent r! xz --decompress --stdout -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - "
else else
if tarfile =~ '^\s*-' if tarfile =~ '^\s*-'
" A file name starting with a dash is taken as an option. Prepend ./ to avoid that. " A file name starting with a dash is taken as an option. Prepend ./ to avoid that.
@@ -265,10 +268,13 @@ fun! tar#Read(fname,mode)
elseif fname =~ '\.lzma$' && executable("lzcat") elseif fname =~ '\.lzma$' && executable("lzcat")
let decmp= "|lzcat" let decmp= "|lzcat"
let doro = 1 let doro = 1
elseif fname =~ '\.xz$' && executable("xzcat")
let decmp= "|xzcat"
let doro = 1
else else
let decmp="" let decmp=""
let doro = 0 let doro = 0
if fname =~ '\.bz2$\|\.gz$\|\.lzma$\|\.zip$\|\.Z$' if fname =~ '\.bz2$\|\.gz$\|\.lzma$\|\.xz$\|\.zip$\|\.Z$'
setlocal bin setlocal bin
endif endif
endif endif
@@ -290,6 +296,9 @@ fun! tar#Read(fname,mode)
elseif tarfile =~# '\.lzma$' elseif tarfile =~# '\.lzma$'
" call Decho("7: exe silent r! lzma -d -c ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp) " call Decho("7: exe silent r! lzma -d -c ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp)
exe "silent r! lzma -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp exe "silent r! lzma -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
elseif tarfile =~# '\.\(xz\|txz\)$'
" call Decho("3: exe silent r! xz --decompress --stdout -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp)
exe "silent r! xz --decompress --stdout -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
else else
if tarfile =~ '^\s*-' if tarfile =~ '^\s*-'
" A file name starting with a dash is taken as an option. Prepend ./ to avoid that. " A file name starting with a dash is taken as an option. Prepend ./ to avoid that.
@@ -387,17 +396,22 @@ fun! tar#Write(fname)
call system("gzip -d -- ".shellescape(tarfile,0)) call system("gzip -d -- ".shellescape(tarfile,0))
let tarfile = substitute(tarfile,'\.gz','','e') let tarfile = substitute(tarfile,'\.gz','','e')
let compress= "gzip -- ".shellescape(tarfile,0) let compress= "gzip -- ".shellescape(tarfile,0)
" call Decho("compress<".compress.">")
elseif tarfile =~# '\.lzma'
call system("lzma -d -- ".shellescape(tarfile,0))
let tarfile = substitute(tarfile,'\.lzma','','e')
let compress= "lzma -- ".shellescape(tarfile,0)
" call Decho("compress<".compress.">") " call Decho("compress<".compress.">")
elseif tarfile =~# '\.tgz' elseif tarfile =~# '\.tgz'
call system("gzip -d -- ".shellescape(tarfile,0)) call system("gzip -d -- ".shellescape(tarfile,0))
let tarfile = substitute(tarfile,'\.tgz','.tar','e') let tarfile = substitute(tarfile,'\.tgz','.tar','e')
let compress= "gzip -- ".shellescape(tarfile,0) let compress= "gzip -- ".shellescape(tarfile,0)
let tgz = 1 let tgz = 1
" call Decho("compress<".compress.">")
elseif tarfile =~# '\.xz'
call system("xz -d -- ".shellescape(tarfile,0))
let tarfile = substitute(tarfile,'\.xz','','e')
let compress= "xz -- ".shellescape(tarfile,0)
" call Decho("compress<".compress.">")
elseif tarfile =~# '\.lzma'
call system("lzma -d -- ".shellescape(tarfile,0))
let tarfile = substitute(tarfile,'\.lzma','','e')
let compress= "lzma -- ".shellescape(tarfile,0)
" call Decho("compress<".compress.">") " call Decho("compress<".compress.">")
endif endif
" call Decho("tarfile<".tarfile.">") " call Decho("tarfile<".tarfile.">")

View File

@@ -1,4 +1,4 @@
*options.txt* For Vim version 7.3c. Last change: 2010 Jul 25 *options.txt* For Vim version 7.3c. Last change: 2010 Jul 28
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1741,12 +1741,15 @@ A jump table for the options with a short description can be found at |Q_op|.
Value Effect ~ Value Effect ~
0 Text is shown normally 0 Text is shown normally
1 Each block of concealed text is replaced with the 1 Each block of concealed text is replaced with one
character defined in 'listchars' (default is a dash) character. If the syntax item does not have a custom
and highlighted with the "Conceal" highlight group. replacement character defined (see |:syn-cchar|) the
character defined in 'listchars' is used (default is a
space).
It is highlighted with the "Conceal" highlight group.
2 Concealed text is completely hidden unless it has a 2 Concealed text is completely hidden unless it has a
custom replacement character defined (see custom replacement character defined (see
|:syn-cchar|. |:syn-cchar|).
3 Concealed text is completely hidden. 3 Concealed text is completely hidden.
Note: in the cursor line concealed text is not hidden, so that you can Note: in the cursor line concealed text is not hidden, so that you can

View File

@@ -2706,6 +2706,7 @@ which is loaded automatically at startup (assuming :set nocp).
============================================================================== ==============================================================================
12. History *netrw-history* {{{1 12. History *netrw-history* {{{1
v140: Jul 27, 2010 * (Lech Lorens) unexpected change of window
v139: May 14, 2010 * when viewing remote directory listings and v139: May 14, 2010 * when viewing remote directory listings and
changing listing style, going to tree listing changing listing style, going to tree listing
mode was issuing two rather useless messages mode was issuing two rather useless messages
@@ -2717,11 +2718,11 @@ which is loaded automatically at startup (assuming :set nocp).
* (Britton Kerin) wanted netrw listings to be * (Britton Kerin) wanted netrw listings to be
buflisted; the |g:netrw_bufsettings| option buflisted; the |g:netrw_bufsettings| option
permits that. permits that.
* (John Orr) pointed out that the intended maparg
test for gx was actually testing for g rather
than gx. Fixed.
Jun 18, 2010 * (Jan Steffens) added support for xz compression Jun 18, 2010 * (Jan Steffens) added support for xz compression
Jun 23, 2010 * vimdiff dir1 dir2 now works Jun 23, 2010 * vimdiff dir1 dir2 now works
Jul 27, 2010 * (John Orr) pointed out that the intended maparg
test for gx was actually testing for g rather
than gx. Fixed.
v138: May 01, 2010 * added the bomb setting to the Save-Set-Restore v138: May 01, 2010 * added the bomb setting to the Save-Set-Restore
option handling (for Tony M) option handling (for Tony M)
May 14, 2010 * (Bram Moolenaar) netrw optionally sets cursorline May 14, 2010 * (Bram Moolenaar) netrw optionally sets cursorline

View File

@@ -1,4 +1,4 @@
*pi_tar.txt* For Vim version 7.3c. Last change: 2009 Dec 28 *pi_tar.txt* For Vim version 7.3c. Last change: 2010 Jul 27
+====================+ +====================+
| Tar File Interface | | Tar File Interface |
@@ -6,7 +6,7 @@
Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM> Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM>
(remove NOSPAM from Campbell's email first) (remove NOSPAM from Campbell's email first)
Copyright 2005-2008: The GPL (gnu public license) applies to *tar-copyright* Copyright 2005-2010: The GPL (gnu public license) applies to *tar-copyright*
tar.vim, tarPlugin.vim, and pi_tar.txt. tar.vim, tarPlugin.vim, and pi_tar.txt.
No warranty, express or implied. Use At-Your-Own-Risk. No warranty, express or implied. Use At-Your-Own-Risk.
@@ -26,10 +26,10 @@ Copyright 2005-2008: The GPL (gnu public license) applies to *tar-copyright*
also write to the file. Currently, one may not make a new file in also write to the file. Currently, one may not make a new file in
tar archives via the plugin. tar archives via the plugin.
*:Untarvim* *:Vimuntar*
UNTARVIM~ VIMUNTAR~
:Untarvim [vimhome] :Vimuntar [vimhome]
This command copies, if necessary, the tarball to the .vim or vimfiles This command copies, if necessary, the tarball to the .vim or vimfiles
directory using the first writable directory in the |'runtimepath'| directory using the first writable directory in the |'runtimepath'|
@@ -83,6 +83,7 @@ Copyright 2005-2008: The GPL (gnu public license) applies to *tar-copyright*
4. History *tar-history* 4. History *tar-history*
v25 Jun 19, 2010 * (Jan Steffens) added support for xz compression
v24 Apr 07, 2009 * :Untarvim command implemented v24 Apr 07, 2009 * :Untarvim command implemented
Sep 28, 2009 * Added lzma support Sep 28, 2009 * Added lzma support
v22 Aug 08, 2008 * security fixes v22 Aug 08, 2008 * security fixes

View File

@@ -1,4 +1,4 @@
*syntax.txt* For Vim version 7.3c. Last change: 2010 Jul 26 *syntax.txt* For Vim version 7.3c. Last change: 2010 Jul 28
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2703,12 +2703,15 @@ always accept such use of @.
*tex-cchar* *tex-cole* *tex-conceal* *tex-cchar* *tex-cole* *tex-conceal*
Taking Advantage of Conceal Mode~ Taking Advantage of Conceal Mode~
If you have |'conceallevel'| set to 1 and if your encoding is utf-8, then a If you have |'conceallevel'| set to 2 and if your encoding is utf-8, then a
number of character sequences will be translated (ie. better visualized) using number of character sequences can be translated into appropriate utf-8 glyphs,
|syn-cchar|, including various accented characters, Greek characters in including various accented characters, Greek characters in MathZones, and
MathZones, and superscripts and subscripts in MathZones. Not all characters superscripts and subscripts in MathZones. Not all characters can be made into
can be made into superscripts or subscripts; the constraint is due to what superscripts or subscripts; the constraint is due to what utf-8 supports.
utf-8 supports. In fact, only a few characters are supported as subscripts.
One way to use this is to have vertically split windows (see |CTRL-W_v|); one
with |'conceallevel'| at 0 and the other at 2; and both using |'scrollbind'|.
TF *tf.vim* *ft-tf-syntax* TF *tf.vim* *ft-tf-syntax*

View File

@@ -1819,10 +1819,10 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
:Sexplore pi_netrw.txt /*:Sexplore* :Sexplore pi_netrw.txt /*:Sexplore*
:TOhtml syntax.txt /*:TOhtml* :TOhtml syntax.txt /*:TOhtml*
:Texplore pi_netrw.txt /*:Texplore* :Texplore pi_netrw.txt /*:Texplore*
:Untarvim pi_tar.txt /*:Untarvim*
:UseVimball pi_vimball.txt /*:UseVimball* :UseVimball pi_vimball.txt /*:UseVimball*
:Vexplore pi_netrw.txt /*:Vexplore* :Vexplore pi_netrw.txt /*:Vexplore*
:VimballList pi_vimball.txt /*:VimballList* :VimballList pi_vimball.txt /*:VimballList*
:Vimuntar pi_tar.txt /*:Vimuntar*
:X editing.txt /*:X* :X editing.txt /*:X*
:XMLent insert.txt /*:XMLent* :XMLent insert.txt /*:XMLent*
:XMLns insert.txt /*:XMLns* :XMLns insert.txt /*:XMLns*
@@ -5732,6 +5732,7 @@ g:netrw_altv pi_netrw.txt /*g:netrw_altv*
g:netrw_banner pi_netrw.txt /*g:netrw_banner* g:netrw_banner pi_netrw.txt /*g:netrw_banner*
g:netrw_browse_split pi_netrw.txt /*g:netrw_browse_split* g:netrw_browse_split pi_netrw.txt /*g:netrw_browse_split*
g:netrw_browsex_viewer pi_netrw.txt /*g:netrw_browsex_viewer* g:netrw_browsex_viewer pi_netrw.txt /*g:netrw_browsex_viewer*
g:netrw_bufsettings pi_netrw.txt /*g:netrw_bufsettings*
g:netrw_chgperm pi_netrw.txt /*g:netrw_chgperm* g:netrw_chgperm pi_netrw.txt /*g:netrw_chgperm*
g:netrw_chgwin pi_netrw.txt /*g:netrw_chgwin* g:netrw_chgwin pi_netrw.txt /*g:netrw_chgwin*
g:netrw_compress pi_netrw.txt /*g:netrw_compress* g:netrw_compress pi_netrw.txt /*g:netrw_compress*
@@ -7902,6 +7903,9 @@ terminal-info term.txt /*terminal-info*
terminal-options term.txt /*terminal-options* terminal-options term.txt /*terminal-options*
terminfo term.txt /*terminfo* terminfo term.txt /*terminfo*
termresponse-variable eval.txt /*termresponse-variable* termresponse-variable eval.txt /*termresponse-variable*
tex-cchar syntax.txt /*tex-cchar*
tex-cole syntax.txt /*tex-cole*
tex-conceal syntax.txt /*tex-conceal*
tex-error syntax.txt /*tex-error* tex-error syntax.txt /*tex-error*
tex-folding syntax.txt /*tex-folding* tex-folding syntax.txt /*tex-folding*
tex-math syntax.txt /*tex-math* tex-math syntax.txt /*tex-math*

View File

@@ -30,12 +30,6 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
*known-bugs* *known-bugs*
-------------------- Known bugs and current work ----------------------- -------------------- Known bugs and current work -----------------------
Problem with concealends in v50 of tex.vim? (Charles Campbell, 2010 Jul 26)
Fixed by patch from Vince? Try /tmp/tex.vim
v140 of netrw.
v25 of tar.vim.
Conceal problem: CTRL-L draws differently than individual line. (Benjamin Conceal problem: CTRL-L draws differently than individual line. (Benjamin
Fritz, 2010 Jul 27) Fritz, 2010 Jul 27)

View File

@@ -20,7 +20,7 @@
if &cp || exists("g:loaded_netrwPlugin") if &cp || exists("g:loaded_netrwPlugin")
finish finish
endif endif
let g:loaded_netrwPlugin = "v139" let g:loaded_netrwPlugin = "v140"
if v:version < 702 if v:version < 702
echohl WarningMsg | echo "***netrw*** you need vim version 7.2 for this version of netrw" | echohl None echohl WarningMsg | echo "***netrw*** you need vim version 7.2 for this version of netrw" | echohl None
finish finish
@@ -112,8 +112,9 @@ endfun
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
" s:VimEnter: {{{2 " s:VimEnter: {{{2
fun! s:VimEnter(dirname) fun! s:VimEnter(dirname)
let curwin= winnr()
windo if a:dirname != expand("%")|call s:LocalBrowse(expand("%:p"))|endif windo if a:dirname != expand("%")|call s:LocalBrowse(expand("%:p"))|endif
1wincmd w exe curwin."wincmd w"
endfun endfun
" --------------------------------------------------------------------- " ---------------------------------------------------------------------

View File

@@ -14,7 +14,7 @@
if &cp || exists("g:loaded_tarPlugin") if &cp || exists("g:loaded_tarPlugin")
finish finish
endif endif
let g:loaded_tarPlugin = "v24" let g:loaded_tarPlugin = "v25"
let s:keepcpo = &cpo let s:keepcpo = &cpo
set cpo&vim set cpo&vim
@@ -41,6 +41,8 @@ augroup tar
au BufReadCmd *.tar.Z call tar#Browse(expand("<amatch>")) au BufReadCmd *.tar.Z call tar#Browse(expand("<amatch>"))
au BufReadCmd *.tgz call tar#Browse(expand("<amatch>")) au BufReadCmd *.tgz call tar#Browse(expand("<amatch>"))
au BufReadCmd *.tar.lzma call tar#Browse(expand("<amatch>")) au BufReadCmd *.tar.lzma call tar#Browse(expand("<amatch>"))
au BufReadCmd *.tar.xz call tar#Browse(expand("<amatch>"))
au BufReadCmd *.txz call tar#Browse(expand("<amatch>"))
augroup END augroup END
com! -nargs=? -complete=file Vimuntar call tar#Vimuntar(<q-args>) com! -nargs=? -complete=file Vimuntar call tar#Vimuntar(<q-args>)