Sunday, October 24, 2010

using xpdf to read pdf in vim on XP

I am trying to be able to use vim to read pdf's. Following
http://vim.wikia.com/wiki/Open_PDF_files#GlobalNavigation

I have downladed xpdf as guide states, however where do I put xpdf? I
am on XP sp3.

I need vim to be able to reference xpdf so when I update vimrc with
below it will work.

autocmd BufReadPre *.pdf set ro nowrap
autocmd BufReadPost *.pdf silent %!pdftotext "%" -nopgbrk -layout -q -
eol unix -
autocmd BufWritePost *.pdf silent !rm -rf ~/PDF/%
autocmd BufWritePost *.pdf silent !lp -s -d pdffg "%"
autocmd BufWritePost *.pdf silent !until [ -e ~/PDF/% ]; do sleep 1;
done
autocmd BufWritePost *.pdf silent !mv ~/PDF/% %:p:h

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment