Brew uninstall macvim
You might also have success using Zathura on macOS… (The default macOS PDF reader, Preview, does not listen for document changes, nor, to the best of my knowledge, does it integrate nicely with SyncTeX.) Use Skim, which you can download as a macOS dmg file from its homepage or from SourceForge. Note, however, that many more Linux-compatible PDF readers exist-see the VimTeX plugin’s documentation at :help g:vimtex_view_method if curious.
The VimTeX plugin also makes configuration between Zathura and Vim very easy. I recommend and will cover Zathura, under the assumption that anyone reading a multi-article Vim series will appreciate Zathura’s Vim-like key bindings and text-based configurability. The PDF reader integrates with a program called SyncTeX, which makes it easy for Vim and the PDF reader to communicate with each other-SyncTeX makes forward and inverse search possible. Or I guess you could hack together a shell script to do this for you, but why bother?) (The alternative: manually switch applications to the PDF reader, refresh the document, and switch back to Vim after every single compilation. In the background, the PDF reader constantly listens for changes to the PDF document and automatically updates its display when the document’s contents change after compilation. A Vim Configuration Primer for Filetype-Specific Workflows, which explains everything you need to know about Vim key mappings to understand this series (the same concepts apply if you use Neovim and Lua).Ī PDF reader used in a LaTeX workflow should meet two important requirements: We will also define some Vim key mappings in this article-if Vim keywords like :map,, , and are unfamiliar to you, consider taking a detour and reading through the final article in this series, 7. In case you are just dropping in now and words like “plugin”, “ftplugin”, and “runtimepath” sound unfamiliar, consider first reading through the third article in this series, which covers what you need to know. To get the most out of this article, you should understand the purpose of these directories. This article will make regular references to the ftplugin and plugin directories, which we will use to implement LaTeX-specific Vim configuration. Returning focus to MacVim after inverse search on macOS.Returning focus to Neovim after inverse search on macOS.Building Zathura and dependencies on macOS.Zathura on WSL (reader-contributed tip).Optional tip: Return focus to gVim after forward and inverse search.Optional tip: Return focus to Vim/Neovim after forward search.Vim users: ensure Vim starts a server (for terminal Vim on Linux).Vim users: ensure you have a clientserver-enabled Vim.Inter-process communication requires a server.Zathura on macOS (Intel-based MacBook Pro 11,5 macOS 12.1 Zathura 0.4.9 built from homebrew-zathura).Skim on macOS (tested on macOS 12.1 using Skim 1.6.9).Zathura on Linux (tested with i3 on Arch using Zathura 0.4.8).Here is a Bourne-compatible shell function (without any known Bashisms) that takes a list of formulae, removes each one's dependencies, removes all copies of the formula itself, and then reinstalls any missing dependencies.This article explains, for both Linux and macOS, how to set up a PDF reader for displaying the PDF file associated with the LaTeX source file being edited in Vim. The posted one-liners can also be tedious to work with if you want to uninstall more than one formula at a time. In particular, most of them will remove dependencies but still leave it up to you to remove the originally-targeted formula afterwards. There are a number of good answers already, but some are out of date and none of them are entirely complete. Package gpg and its dependancies have been removed. Uninstalling /usr/local/Cellar/libgpg-error/1.35. Uninstalling /usr/local/Cellar/libffi/3.2.1. Uninstalling /usr/local/Cellar/gmp/6.1.2_2. Uninstalling /usr/local/Cellar/nettle/3.4.1. Uninstalling /usr/local/Cellar/libunistring/0.9.10. Uninstalling /usr/local/Cellar/libtasn1/4.13. Uninstalling /usr/local/Cellar/libassuan/2.5.3. Uninstalling /usr/local/Cellar/pinentry/1.1.0_1. Uninstalling /usr/local/Cellar/libusb/1.0.22. Uninstalling /usr/local/Cellar/libksba/1.3.5. Uninstalling /usr/local/Cellar/libgcrypt/1.8.4. Uninstalling /usr/local/Cellar/gnutls/3.6.6. Uninstalling /usr/local/Cellar/adns/1.5.1. Uninstalling /usr/local/Cellar/gnupg/2.2.13. Now install it with the following command sudo install brew-purge /usr/local/bin #:Removes the package and all dependancies.Įcho Package $PKG and its dependancies have been removed. Save the following script as brew-purge #!/bin/bash