]> granicus.if.org Git - vim/commitdiff
More runtime file updates.
authorBram Moolenaar <Bram@vim.org>
Wed, 28 Jul 2010 16:17:41 +0000 (18:17 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 28 Jul 2010 16:17:41 +0000 (18:17 +0200)
runtime/autoload/netrw.vim
runtime/autoload/tar.vim
runtime/doc/options.txt
runtime/doc/pi_netrw.txt
runtime/doc/pi_tar.txt
runtime/doc/syntax.txt
runtime/doc/tags
runtime/doc/todo.txt
runtime/plugin/netrwPlugin.vim
runtime/plugin/tarPlugin.vim

index b05f81db8bf1b164f8f0252b37314ca26147afd2..6d1c37f4886ae1f9b6cf816a5a4b8c2c31925684 100644 (file)
@@ -1,7 +1,7 @@
 " netrw.vim: Handles file transfer and remote directory listing across
 "            AUTOLOAD SECTION
 " Date:                Jul 27, 2010
-" Version:     139
+" Version:     140
 " Maintainer:  Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
 " GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim
 " Copyright:    Copyright (C) 1999-2010 Charles E. Campbell, Jr. {{{1
@@ -22,7 +22,7 @@
 if &cp || exists("g:loaded_netrw")
   finish
 endif
-let g:loaded_netrw = "v139"
+let g:loaded_netrw = "v140"
 if v:version < 702
  echohl WarningMsg
  echo "***warning*** this version of netrw needs vim 7.2"
index 3e44579ce19ee779f488dcb6fd9a4a4a698c812c..508405341b09b3d28e545d0296f2a71734ad573e 100644 (file)
@@ -1,7 +1,7 @@
 " tar.vim: Handles browsing tarfiles
 "            AUTOLOAD PORTION
-" Date:                        Dec 28, 2009
-" Version:             24
+" Date:                        Jul 27, 2010
+" Version:             25
 " Maintainer:  Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
 " License:             Vim License  (see vim's :help license)
 "
@@ -22,7 +22,7 @@
 if &cp || exists("g:loaded_tar")
  finish
 endif
-let g:loaded_tar= "v24"
+let g:loaded_tar= "v25"
 if v:version < 702
  echohl WarningMsg
  echo "***warning*** this version of tar needs vim 7.2"
@@ -164,6 +164,9 @@ fun! tar#Browse(tarfile)
   elseif tarfile =~# '\.lzma$'
 "   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." - "
+  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
    if tarfile =~ '^\s*-'
     " 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")
    let decmp= "|lzcat"
    let doro = 1
+  elseif  fname =~ '\.xz$' && executable("xzcat")
+   let decmp= "|xzcat"
+   let doro = 1
   else
    let decmp=""
    let doro = 0
-   if fname =~ '\.bz2$\|\.gz$\|\.lzma$\|\.zip$\|\.Z$'
+   if fname =~ '\.bz2$\|\.gz$\|\.lzma$\|\.xz$\|\.zip$\|\.Z$'
     setlocal bin
    endif
   endif
@@ -290,6 +296,9 @@ fun! tar#Read(fname,mode)
   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)
    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
    if tarfile =~ '^\s*-'
     " 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))
    let tarfile = substitute(tarfile,'\.gz','','e')
    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.">")
   elseif tarfile =~# '\.tgz'
    call system("gzip -d -- ".shellescape(tarfile,0))
    let tarfile = substitute(tarfile,'\.tgz','.tar','e')
    let compress= "gzip -- ".shellescape(tarfile,0)
    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.">")
   endif
 "  call Decho("tarfile<".tarfile.">")
index f7b90ca3fdd45ea1cc2fc62f8c1e2ea49fed2331..469d6064c571db54c70b4648b268056de682017a 100644 (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
@@ -1741,12 +1741,15 @@ A jump table for the options with a short description can be found at |Q_op|.
 
        Value           Effect ~
        0               Text is shown normally
-       1               Each block of concealed text is replaced with the
-                       character defined in 'listchars' (default is a dash)
-                       and highlighted with the "Conceal" highlight group.
+       1               Each block of concealed text is replaced with one
+                       character.  If the syntax item does not have a custom
+                       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
                        custom replacement character defined (see
-                       |:syn-cchar|.
+                       |:syn-cchar|).
        3               Concealed text is completely hidden.
 
        Note: in the cursor line concealed text is not hidden, so that you can
index 193138bb975851efd44dc75dd8c5dc358b8eaa9c..ec6c139857addc710934ccf719aeb0ed679728b9 100644 (file)
@@ -2706,6 +2706,7 @@ which is loaded automatically at startup (assuming :set nocp).
 ==============================================================================
 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
                             changing listing style, going to tree listing
                             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
                             buflisted; the |g:netrw_bufsettings| option
                             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 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
                             option handling (for Tony M)
              May 14, 2010 * (Bram Moolenaar) netrw optionally sets cursorline
index d90d7a615bc6e7403db1c9249767014ac766f151..c14a2a8940081b1930a3e5dfc55b7eff93f7ca59 100644 (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 |
@@ -6,7 +6,7 @@
 
 Author:  Charles E. Campbell, Jr.  <NdrOchip@ScampbellPfamily.AbizM>
          (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.
           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
    tar archives via the plugin.
 
-                                               *:Untarvim*
-   UNTARVIM~
+                                               *:Vimuntar*
+   VIMUNTAR~
 
-   :Untarvim [vimhome]
+   :Vimuntar [vimhome]
 
        This command copies, if necessary, the tarball to the .vim or vimfiles
        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*
 
 
+   v25 Jun 19, 2010 * (Jan Steffens) added support for xz compression
    v24 Apr 07, 2009 * :Untarvim command implemented
        Sep 28, 2009 * Added lzma support
    v22 Aug 08, 2008 * security fixes
index 71afa9f031c13d40f31964cb7794bfe224b6d73c..73e7404053358200b00caacb37f32e8e6500241d 100644 (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
@@ -2703,12 +2703,15 @@ always accept such use of @.
                                        *tex-cchar* *tex-cole* *tex-conceal*
 Taking Advantage of Conceal Mode~
 
-If you have |'conceallevel'| set to 1 and if your encoding is utf-8, then a
-number of character sequences will be translated (ie. better visualized) using
-|syn-cchar|, including various accented characters, Greek characters in
-MathZones, and superscripts and subscripts in MathZones.  Not all characters
-can be made into superscripts or subscripts; the constraint is due to what
-utf-8 supports.
+If you have |'conceallevel'| set to 2 and if your encoding is utf-8, then a
+number of character sequences can be translated into appropriate utf-8 glyphs,
+including various accented characters, Greek characters in MathZones, and
+superscripts and subscripts in MathZones.  Not all characters can be made into
+superscripts or subscripts; the constraint is due to what 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*
index 004f3ce64017d55e1bdd663efa0c6d84eeb106d6..633fa2fb15e94f71fff502bd7351e28153435c05 100644 (file)
@@ -1819,10 +1819,10 @@ $VIMRUNTIME     starting.txt    /*$VIMRUNTIME*
 :Sexplore      pi_netrw.txt    /*:Sexplore*
 :TOhtml        syntax.txt      /*:TOhtml*
 :Texplore      pi_netrw.txt    /*:Texplore*
-:Untarvim      pi_tar.txt      /*:Untarvim*
 :UseVimball    pi_vimball.txt  /*:UseVimball*
 :Vexplore      pi_netrw.txt    /*:Vexplore*
 :VimballList   pi_vimball.txt  /*:VimballList*
+:Vimuntar      pi_tar.txt      /*:Vimuntar*
 :X     editing.txt     /*:X*
 :XMLent        insert.txt      /*:XMLent*
 :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_browse_split   pi_netrw.txt    /*g:netrw_browse_split*
 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_chgwin pi_netrw.txt    /*g:netrw_chgwin*
 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*
 terminfo       term.txt        /*terminfo*
 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-folding    syntax.txt      /*tex-folding*
 tex-math       syntax.txt      /*tex-math*
index b132f56f98497e411878f80c8424f47cc12add65..d539cb0fe2e9c7bafcca168e89257add407cab58 100644 (file)
@@ -30,12 +30,6 @@ be worked on, but only if you sponsor Vim development.  See |sponsor|.
                                                        *known-bugs*
 -------------------- 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
 Fritz, 2010 Jul 27)
 
index 25a42629c60e4bbf2d2d1bad3817dda6e7529d87..3ce710b0ad3548a2279c72cca3a467d9e8f404c7 100644 (file)
@@ -20,7 +20,7 @@
 if &cp || exists("g:loaded_netrwPlugin")
  finish
 endif
-let g:loaded_netrwPlugin = "v139"
+let g:loaded_netrwPlugin = "v140"
 if v:version < 702
  echohl WarningMsg | echo "***netrw*** you need vim version 7.2 for this version of netrw" | echohl None
  finish
@@ -112,8 +112,9 @@ endfun
 " ---------------------------------------------------------------------
 " s:VimEnter: {{{2
 fun! s:VimEnter(dirname)
+  let curwin= winnr()
   windo if a:dirname != expand("%")|call s:LocalBrowse(expand("%:p"))|endif
-  1wincmd w
+  exe curwin."wincmd w"
 endfun
 
 " ---------------------------------------------------------------------
index 8232b46d56ff9098e891f11397b290a9cc8413a2..42d6f4fc136935d63ef2b30b3b574d4333cad53f 100644 (file)
@@ -14,7 +14,7 @@
 if &cp || exists("g:loaded_tarPlugin")
  finish
 endif
-let g:loaded_tarPlugin = "v24"
+let g:loaded_tarPlugin = "v25"
 let s:keepcpo          = &cpo
 set cpo&vim
 
@@ -41,6 +41,8 @@ augroup tar
   au BufReadCmd   *.tar.Z              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.xz             call tar#Browse(expand("<amatch>"))
+  au BufReadCmd   *.txz                        call tar#Browse(expand("<amatch>"))
 augroup END
 com! -nargs=? -complete=file Vimuntar call tar#Vimuntar(<q-args>)