You are not logged in.

#1 2009-10-13 03:14:23

matthewbauer
Member
From: /usa/ks
Registered: 2009-07-20
Posts: 86

VIM plugin to edit ODT or DOC?

Is there a VIM plugin to edit ODT or DOC files from OpenOffice or Word?


Libertarian Arch Linux User

Offline

#2 2009-10-13 03:28:41

droog
Member
Registered: 2004-11-18
Posts: 877

Re: VIM plugin to edit ODT or DOC?

Don't remember where i got this from but install antiword and put this in your .vimrc

" MS Word document reading
au BufReadPre *.doc set ro
au BufReadPre *.doc set hlsearch!
au BufReadPost *.doc %!antiword "%"

/edit
Just realized this probably isn't what you are looking for. I have just used it for viewing doc files not editing.
I don't think it keeps any formatting if you save it.

Last edited by droog (2009-10-13 03:34:46)

Offline

#3 2009-10-13 14:38:42

ilembitov
Member
Registered: 2008-10-07
Posts: 124

Re: VIM plugin to edit ODT or DOC?

"Welcome to the club". Was looking to get rid of AbiWord/OpenOffice for almost a year now. Probably it's easier to stop using those formats (although i do not understand why there's no lightweight ODT-only editors - may be that's because ODT is still not very widespread and not so mature).

Offline

Board footer

Powered by FluxBB