Active2 years, 1 month ago
- Pdf Reader With Vim Key Bindings For Mac Os X
- Pdf Reader With Vim Keybindings For Mac Os X Default
- Pdf Reader With Vim Keybindings For Mac Os X Lion Free Download
I need to 'find and replace' text in a PDF file on OS X Yosemite.
I'd like to use PDFView mode as the default PDF reader when editing LaTeX code in AucTeX, using Emacs 24. For example, after compiling with C-c C-c, redoing this command would open the PDF file in a second buffer in the same window, using PDFView mode instead of Doc View. I also use Karabiner on OS X to map hjkl to arrow keys when I hold s+d. Plus some other useful mappings like ctrl+i to tab, ctrl+[ to escape, ctrl+m to return and ctrl+j to enter. Plus some other useful mappings like ctrl+i to tab, ctrl+[ to escape, ctrl+m to return and ctrl+j to enter.
Adobe Acrobat Reader is currently one of the good PDF readers available on the Linux platform. Xpdf and Evince do their job well, but Acrobat's display seems to be better. I am used to the Vim editor and I want Vim navigation features (using h, j, k, and l to move around) in Adobe Reader. Windows, Mac OS, Linux, Free. BSD, Solaris. PDFsam Basic is a free and open source desktop application to split, merge, extract pages, rotate and mix PDF files. How to get Vim keybindings in Adobe Reader on SuperUser (my answer to that question is an AutoHotKey script that will even get you proper search functionality with /, n, and N, but admittedly I haven’t verified a port to Linux or Mac yet).
It would be better if there was a 'replace all' feature. How can I do this on OS X?
Revetahw
RevetahwRevetahw32822 gold badges44 silver badges2929 bronze badges
4 Answers
As Tom Gewecke mentioned in a comment, Adobe Acrobat can do this.
I was also able to do this with PDFpen, as also suggested by Tom Gewecke.
Both apps seem great. Since both of them are quite pricey, though, I would also like to share a way to do this with the free and open source software LibreOffice.
- Open the PDF with LibreOffice.
- Click Edit in the panel, then Find & Replace.... Use the feature as desired.
- Click File in the panel, then select Export as PDF.... Save the PDF.
I suspect LibreOffice probably decodes and re-encodes the document. But in my case the new document looked precisely identical to the original (except for the edits, of course.)
user343989431.8k77 gold badges4949 silver badges7070 bronze badges
RevetahwRevetahw32822 gold badges44 silver badges2929 bronze badges
Usually, you can actually get away with just replacing the string in the file contents. Make a copy of the PDF, open it in a pure text editor (textmate, atom, vim etc.) and search&replace.
Pdf Reader With Vim Key Bindings For Mac Os X
MattW.MattW.
If you are willing to use latex, you could convert your pdf to ps, include it in a new document while using the psfrag package to do the replacement. A quick example would be
which replaces all occurrences of 'bla' with 'blub'. The conversion to and from ps can be done by
pdf2ps
or ps2pdf
.samcartersamcarter
If the PDF is native and writable, you can open with preview,copy and paste all the contents into Word, then use the 'find and replace all' feature in Word;
If the PDF is scanned, image-based, you can use online OCR tools, they can help to convert scanned PDFs into editable formats, such as Word, or others, then you will be able to find and replace texts in PDF.
Rosa ReyesRosa Reyes
You must log in to answer this question.
Not the answer you're looking for? Browse other questions tagged macosyosemitesoftware-recommendationpdfword-processor .
Active1 year, 3 months ago
I'm learning Vim and with it came the urge to use 'hjkl' and friends on every other program, including mouse operated programs like browsers.
How can I use these keyboard shortcuts, or something similar?
I'm using Linux.
Ton van den Heuvel5,89644 gold badges3232 silver badges7070 bronze badges
Liran OreviLiran Orevi2,84777 gold badges4040 silver badges6161 bronze badges
closed as off-topic by Paul Roub, tripleee, Zoe, gre_gor, Stephen KennedyJun 6 '18 at 17:25
This question appears to be off-topic. The users who voted to close gave this specific reason:
- 'Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User.' – tripleee, gre_gor, Stephen Kennedy
25 Answers
Off the top of my head...
- Vimperator for Firefox.
- Awesome, WMII, Xmonad or ion3 window manager.
- Evince supports hjkl.
- vifm filemanager
- there are vi keybindings for readline, which enables them for many terminal apps
- xzgv image viewer
sluukkonensluukkonen
Gmail and several of the other Google apps natively support Vi-like motions.
Also, you might want to try Vimperator and, most definitely, Nethack!
Marcel GuzmanMarcel Guzman
Give scrotwm a try. It's a tiling window manager with vim-like bindings by default, written by coders who use vim!
And vimperator for Firefox makes my life much, much easier.
For Bourne-like shells (ksh, bash, ...) try
dwcdwcset -o vi
to make your command line use vi keys.19.4k55 gold badges3737 silver badges5252 bronze badges
File manager with vi movement key-bindings and much more: ranger.
plesivplesiv6,40433 gold badges2121 silver badges3131 bronze badges
Zathura is a nice and small pdf reader and with built-in vim-like commands. It feels like you opened your pdf document in vim. (e.g.: the ':' button brings up the same prompt.)
CrooCroo81711 gold badge1111 silver badges2828 bronze badges
![Pdf Reader With Vim Keybindings For Mac Os X Pdf Reader With Vim Keybindings For Mac Os X](/uploads/1/2/6/6/126616284/232653573.png)
Others:
- ViEmu: plugin for Visual Studio, Word, Outlook, SQL Server
- KomodoEdit: developer's editor
- AbiWord: word processor
- Editra: developer's editor
- VimPlugin: plug Vim into Eclipse. I couldn't get it working under Windows or Mac OS X.
- Eclim: another Vim plugin for Eclipse.
- Viper: Old Vi emulator for Emacs
- Evil: Recent Vim emulator for Emacs
- IdeaVim: Vim emulator for the IntelliJ family of editors, RubyMine, PyCharm, etc.
11.8k55 gold badges3232 silver badges3636 bronze badges
If you use Eclipse, then viPlugin is the best vi-like editor for it.
I always stick the following two lines in my /etc/inputrc (or ~/.inputrc if I don't have root access):
EvanEvan14.5k88 gold badges3636 silver badges4848 bronze badges
Viper works, but if you're used to Vim, it is lacking a lot of keybindings that will end up messing you up. Theres also jvi for Netbeans, which I find more complete than the Eclipse plugins. Kate also recently added Vi-emulation mode
I also consider xmonad, to be superior to Awesome, Ion etc.
FlemishBeeCycleFlemishBeeCycle
Charles RoperCharles Roper12.1k1818 gold badges6262 silver badges9393 bronze badges
souser12345souser1234512.8k66 gold badges5454 silver badges7373 bronze badges
Lightweight (30k zpi) FimFx for Firefox - does less than Vimperator, but for a good reason.
ak.ak.Pdf Reader With Vim Keybindings For Mac Os X Default
2,08633 gold badges3131 silver badges4545 bronze badges
Check out:
- dwb — a web browser
- ranger — a terminal-based file manager
- Zathura — a PDF viewer
- Vimium — a vim keybindings extension for Chrome(ium)
- Evil — the (in)famous Emacs plugin that turns Emacs into Vim, if you ever feel the need to do that
- i3, xmonad, dwm — tiling window managers that are controlled from the keyboard
27.4k99 gold badges6262 silver badges8585 bronze badges
PonyEarsPonyEars1,31422 gold badges1818 silver badges2929 bronze badges
You can use xmodmap to make win+hjkl to work as arrow keys.
Make a file named Xmodmap. Add the following content:
Make a file named Xmodmap. Add the following content:
Load it using xmodmap Xmodmap
Note: Run xev to find out keycode for win key. 133 is just an example.
Chad FergusonNote: Run xev to find out keycode for win key. 133 is just an example.
3,00855 gold badges3232 silver badges4040 bronze badges
yanivyaniv
Qutebrowser hasn't been mentioned, which is much better than the plugins.
ToothrotToothrot
I used Ion as a window manager on Linux for a while. It uses keybindings similar to Vim to move between windows, if I recall correctly. It won't make your apps support hjkl movement, but the window manager is a place to start.
Dan OlsonDan Olson19.3k44 gold badges3535 silver badges5050 bronze badges
![Vim Vim](/uploads/1/2/6/6/126616284/642912443.png)
Apart from the already mentioned, you could also bind those keys to left... nd so on (with ahk). I've also noticed that several web apps use that movement keys (gmail, greader, ....)
RookRook41.1k3838 gold badges145145 silver badges219219 bronze badges
Pdf Reader With Vim Keybindings For Mac Os X Lion Free Download
Try keynav, for controlling the mouse pointer using your keyboard.
arcanex
Naga KiranNaga Kiran5,44055 gold badges3333 silver badges4747 bronze badges
If you use mpd for listening to music, then I strongly recommend PIM
ivotronivotron88211 gold badge1111 silver badges2020 bronze badges
Google Reader
respects jk
keybindings. I'm sure there are more that they support - feel free to edit my answer.1,21911 gold badge1010 silver badges2020 bronze badges
Shortcut Manager extension for chrome.
You can use something like this to configure basic vim movement keys:
Other useful snippets:
PonyEarsPonyEars1,31422 gold badges1818 silver badges2929 bronze badges
Mutt - mail client - can be configured to move hjkl, i configure some more vim keys. take some time to configure as it's a bit different from other mail clients. Mutt is not Muttator, is a terminal GUI application.
toshitoshi
cVim for chrome is awesome. I am currently using it.https://github.com/1995eaton/chromium-vim
Luja ShresthaLuja Shrestha1,27022 gold badges1616 silver badges2626 bronze badges
(my answer to that question is an AutoHotKey script that will even get you proper search functionality with /, n, and N, but admittedly I haven't verified a port to Linux or Mac yet)
Community♦
Gordon GustafsonGordon Gustafson26.6k2222 gold badges100100 silver badges148148 bronze badges