Xpdf 中的 Vi 鍵?

Xpdf 中的 Vi 鍵?

Xpdf 手冊頁說它可以定制使用 Vi 風格的按鍵綁定:

Previous  versions  of  xpdf  included  a  "viKeys" X resource.  It is no
longer available, but the following bindings are equivalent:

   bind h any scrollLeft(16)
   bind l any scrollRight(16)
   bind k any scrollUp(16)
   bind j any scrollDown(16)

但是當我將這些行加到~/.xpdfrc.可能發生什麼事?

答案1

安裝了3.03版本。.xpdfrc根據,至少這裡被打開並閱讀,strace但沒有設定有任何效果。已下載並測試3.04版這裡綁定工作正常。

快速做:

wget ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.04.tar.gz
tar xzvf xpdf-3.04.tar.gz
cd xpdf-3.04

安裝 FreeType 2 開發版和 Motif 開發版。對於 Debian 之類的東西:

apt-get install libmotif-dev libfreetype6-dev libfreetype6

配置並製作:

# Read INSTALL
./configure --with-freetype2-includes=/usr/include/freetype2
make

測試:

./xpdf/xpdf Path_to_some.pdf

包括:

pdfdetach  pdfimages  pdftohtml  pdftoppm   pdftotext  
pdffonts   pdfinfo    pdftopng   pdftops    xpdf

也快速瀏覽了一下札圖拉根據推薦@彼得夫

看起來不錯,如果你想要 vi(m) 綁定,它有很多與 vim 中相同的預設綁定。例如h, j, k, l, :, /, gg, G等。事物是可配置的。

相關內容