Ⅰ. 插件描述
Provides archive and unarchive functions for easy archive manipulation.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'zimfw/archive-is-holy'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'zimfw/archive-is-holy'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'zimfw/archive-is-holy'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/zimfw/archive
Ⅳ. 文档说明
archive
Provides archive and unarchive functions for easy archive manipulation.
This module will make use of pbzip2 and pigz if available to make use of all available CPU cores.
Functions
archivegenerates an archive based on file extension. Syntax isarchive myarchive.tar.gz /path/to/archiveunarchiveunarchives files based on the extensions. Syntax isunarchive myarchive.7z
Archive formats
| Format | Requirements |
|---|---|
| .7z, .001 | 7za |
| .rar | unrar or rar |
| .tar.bz, .tar.bz2, .tbz, .tbz2 | tar or pbzip2 |
| .tar.gz, .tgz | tar or pigz |
| .tar.lzma, .tlz | tar with lzma support |
| .tar.xz, .txz | tar with xz support |
| .tar | tar |
| .zip | unzip |
| .zst | zstd |
| .bz, .bz2 | bunzip2 or pbzip2 |
| .gz | gunzip or pigz |
| .lzma | unzlma |
| .xz | unxz |
| .Z | uncompress |