kovidgoyal
10-18-2010, 09:14 PM
I just discovered that vim can open and edit files inside a zip file automatically, which of course means it can do the same for epub. Which is awesome :)
Add the following to your .vimrc:
au BufReadCmd *.epub call zip#Browse(expand("<amatch>"))
Terisa de morgan
10-19-2010, 01:04 AM
Thank you very much. vim is my text editor at PC, so it's very useful for me.
MrPLD
10-19-2010, 03:37 AM
Got to love the vim... I use gtk-vim a lot here, very nice spreading it all over large panels :)
charleski
10-19-2010, 09:53 AM
Does it rezip correctly so the epub validates? I know 7zip doesn't.
Jellby
10-19-2010, 10:09 AM
Does it rezip correctly so the epub validates? I know 7zip doesn't.
I just tried editing a valid ePUB (deleted some content from XHTML and CSS files), and it remains valid. I don't know which "options" it uses to rezip the files, though.
kovidgoyal
10-19-2010, 11:47 AM
On Unix it uses
zip -u
which will only affect the changed files.
opitzs
10-27-2010, 06:02 AM
Thank you very much, this really is handy!