Ⅰ. 插件描述
A Vim plugin for EPUB edition.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'etnadji/vim-epub'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'etnadji/vim-epub'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'etnadji/vim-epub'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/etnadji/vim-epub
Ⅳ. 文档说明
# vim-epub
**Github users : I’m leaving GitHub (because of Microsoft Acquisition).
Read this for the new URL.
This repo will be ERASED soon.**
**Utilisateurs de Github : Je quitte GitHub (suite à son acquisition par Microsoft).
Lisez ceci pour avoir la nouvelle URL.
Ce dépôt sera bientôt SUPPRIMÉ.**
A Vim plugin for EPUB edition.
Released under GNU GPL 3 (check LICENSE file).
With Vim, you can already edit an epub file and
save your modifications.
But you can only edit and save the files that already exists : you
can't add files and do many other things.
vim-epub exists to make you free of stupid tasks like extracting
the EPUB, add the file you want to add, recompress in 2-steps the EPUB, re-open Vim.
Installation
Supported operating systems
Unices
- BSDs
- Mac OS
- GNU/Linux distributions
Windows
To open EPUB files with Vim EPUB on Windows, you have to
install GNU unzip in the executable path.
Vim
You need a copy of Vim compiled with python support.
Needed programs
You need the unzip programm in order to make zip.vim (built-in) work.
It is frequently installed by default on newbies distributions like Ubuntu, Linux Mint, etc, and it may be installed already because of other softwares dependencies.
In Debian-like GNU/Linux distributions:
sudo apt-get install unzip
You also needs pandoc program.
Again:
sudo apt-get install pandoc
Plugin managers
vim-plug
- Add
Plug 'https://github.com/etnadji/vim-epub'to .vimrc - Run
:PlugInstall
Vundle
- Add
Bundle 'etnadji/vim-epub'orBundle 'https://github.com/etnadji/vim-epub'to .vimrc - Run
:BundleInstall
Pathogen
git clone https://github.com/etnadji/vim-epub ~/.vim/bundle/vim-epub
NeoBundle
- Add
NeoBundle 'https://github.com/etnadji/vim-epub'to .vimrc - Run
:NeoBundleInstall
Notable features
- Adding medias (XHTML, CSS, fonts, images…)
- Add a Table of contents page.
- Provide a menu to easily link XHTML and CSS contents.
- Merge, rename files embedded in the EPUB
- Check the differences between the current EPUB and another.
And more:
The full list of features / commands is available on the wiki or doc files (en /fr)::help vim-epub.txt or :help vim-epub-french.frx
Contribute!
See TODO.md.