Ⅰ. 插件描述
A vim plugin for reading and writing lz4 frame files.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'funcodeio/lz4-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'funcodeio/lz4-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'funcodeio/lz4-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/funcodeio/lz4.vim
Ⅳ. 文档说明
# lz4.vim
A vim plugin for reading and writing [lz4] frame files.
This plugin enables you to see the original content of lz4-compressed file, and to modify it. When you read a lz4-compressed file, the plugin decompresses it internally and paste the result into the window. And, when you write a file whose extension is lz4, the plugin writes compressed string to the file.
It is a variant of [gzip.vim] plugin included in vim74.
Installation
If you don't have any preferred installation method, one option is using Vundle.
- [Install Vundle] into
~/.vim/bundle/.
- Add this line to your
.vimrc.
Plugin 'funcodeio/lz4.vim'
- Open vim and run
:PluginInstall.
To update, open vim and run :PluginUpdate
Requirement
lz4c binary is required.
If you use Ubuntu, you can find it in liblz4-tool package.
sudo apt-get install liblz4-tool