Ⅰ. 插件描述
A vim plugin for browsing tarfilesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/tar-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/tar-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/tar-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/tar.vim
Ⅳ. 文档说明
Once this script is installed, attempting to edit a tarfile will present the
user with a list of files contained in the tar archive. By moving the cursor
over a filename and pressing ENTER, the contents of a file can be viewed in
read-only mode, in a new window. Unfortunately, write support for tarfile
components is not currently possible.
Requires GNU tar, or a tar implementation that supports the "P" (don't strip
out leading /'s from filenames), and "O" (extract files to standard output)
options. Additionally, gzip is required for handling .tar.Z, .tar.gz,
and .tgz compressed tarfiles, and bzip2 is required for handling .tar.bz2
compressed tarfiles. A unix-like operating system is probably also required.