Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions doc/pi_zip.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*pi_zip.txt* For Vim バージョン 9.1. Last change: 2025 Jul 15
*pi_zip.txt* For Vim バージョン 9.1. Last change: 2025 Sep 22

+====================+
| Zip File Interface |
Expand Down Expand Up @@ -49,7 +49,7 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
るように、正しいクォートのメカニズムを推測しようとする。ただし、設定で使用
するクォートを誤推測した場合は以下を使用する >
g:zip_shq
< デフォルトでは、Unix ではシングルクォート (')、Windows ではダブルクォート
< デフォルトでは、Unix ではシングルクォート (')、Windows ではダブルクォート
(")である。クォート自体をしたくない場合は <.vimrc> の中で g:zip_shq に空文
字を設定する (let g:zip_shq = "") だけである。

Expand All @@ -75,6 +75,16 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
"0" に設定すると、"unzip" コマンドの実行を防ぐことができる: >
let g:zip_exec=0
<
PowerShell コアへのフォールバック~

このプラグインは、まず (より高機能な) GNU zip/unzip コマンドの使用を試みる。
これらのコマンドが使用できない、または失敗し、ユーザーが PowerShell Core を
使用している場合 (つまり、'shell' オプションが "pwsh" に一致する場合)、プラ
グインは PowerShell Core コマンドレットにフォールバックする。PowerShell
Core コマンドレットには制限があり、zip アーカイブのサブディレクトリ内のファ
イルの書き込みや解凍はできない。ただし、別途 unzip バイナリをインストールす
る必要がないという利点がある。

読み込みの無効化~

何らかの理由で vim を使用して zip ファイルを検査したくない場合は、次の 2 つ
Expand Down Expand Up @@ -109,6 +119,7 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
==============================================================================
4. 開発履歴 *zip-history* {{{1
unreleased:
Sep 19, 2025 * support PowerShell Core
Jul 12, 2025 * drop ../ on write to prevent path traversal attacks
Mar 11, 2025 * handle filenames with leading '-' correctly
Aug 21, 2024 * simplify condition to detect MS-Windows
Expand Down
15 changes: 13 additions & 2 deletions en/pi_zip.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*pi_zip.txt* For Vim version 9.1. Last change: 2025 Jul 15
*pi_zip.txt* For Vim version 9.1. Last change: 2025 Sep 22

+====================+
| Zip File Interface |
Expand Down Expand Up @@ -50,7 +50,7 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
allow spaces and whatnot in filenames; however, if it is incorrectly
guessing the quote to use for your setup, you may use >
g:zip_shq
< which by default is a single quote under Unix (') and a double quote
< which by default is a single quote under Unix (') and a double quote
under Windows ("). If you'd rather have no quotes, simply set
g:zip_shq to the empty string (let g:zip_shq= "") in your <.vimrc>.

Expand All @@ -77,6 +77,16 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
"0": >
let g:zip_exec=0
<
FALLBACK TO POWERSHELL CORE~

This plugin will first attempt to use the (more capable) GNU zip/unzip
commands. If these commands are not available or fail, and the user is
using PowerShell Core (i.e., the 'shell' option matches "pwsh"), the
plugin will fall back to a PowerShell Core cmdlet. The PowerShell Core
cmdlets are limited: they cannot write or extract files within
subdirectories of a zip archive. The advantage, however, is that no
separate unzip binary needs to be installed.

PREVENTING LOADING~

If for some reason you do not wish to use vim to examine zipped files,
Expand Down Expand Up @@ -112,6 +122,7 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
==============================================================================
4. History *zip-history* {{{1
unreleased:
Sep 19, 2025 * support PowerShell Core
Jul 12, 2025 * drop ../ on write to prevent path traversal attacks
Mar 11, 2025 * handle filenames with leading '-' correctly
Aug 21, 2024 * simplify condition to detect MS-Windows
Expand Down