Thread: ePub and vim
View Single Post
Old 07-06-2012, 04:49 PM   #10
mrjoeyman
Junior Member
mrjoeyman began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2012
Device: Kindle Fire
vim and epub

Quote:
Originally Posted by kovidgoyal View Post
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:

Code:
au BufReadCmd   *.epub      call zip#Browse(expand("<amatch>"))
I get the message: "***error*** (zip#browse) unzip not available on your system" when I try to open an epub file.

I used note pad to insert: "au BufReadCmd *.epub call zip#Browse(expand("<amatch>"))" into my .vimrc file.

Any help? Thanks.
mrjoeyman is offline   Reply With Quote