The Computer Oracle

Systemwide vim mode for OSX

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: A Thousand Exotic Places Looping v001

--

Chapters
00:00 Systemwide Vim Mode For Osx
00:21 Answer 1 Score 10
01:13 Answer 2 Score 7
01:53 Accepted Answer Score 2
02:12 Answer 4 Score 1
02:32 Thank you

--

Full question
https://superuser.com/questions/1038365/...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#macos #vim

#avk47



ANSWER 1

Score 10


No and yes!
macOS dosen't provide such kind of facility.

But,

you can use Karabiner's Vim's ubiquitous mode, it enables you to do vim mode editing in every textbox, no matter it's in a browser address bar or a stackexchange.com editor like I am typing now. and you can even use hjkl to replace UpDownLeftRight arrow when you are not in a textbox.

To install

Karabiner is a free software, you can simply install it by homebrew:

brew cask install karabiner

then, enable the Ubiquitous Vim Binding, you can choose the normal mode trigger as you like, and as for me I choose Ctrl-[ toggles Normal Mode. In addition, you can also setup system-wide Emacs Ctrl-PNBF.

If you have more questions, please leave a comment. Happy Vimming!




ANSWER 2

Score 7


The accepted answer here is a bit out of date (as of macOS 10.12 Sierra). As you can see from the notes in the Karabiner repository, the newer versions of macOS require Karabiner-elements instead and does not provide a "Ubiquitous Vim Binding" out of the box.

However, it does support "Complex Modifications" which can be leveraged to provide Vim style keybindings using combination keystrokes. This article provides detailed instructions on how to setup Karabiner-elements with complex modifications to achieve Vim bindings in many different contexts. Of course, there are many additional resources available on the web as well.

Happy Vim-ing!




ACCEPTED ANSWER

Score 2


There are some new open source alternatives cropping up every now and then, just wanted to add them here:




ANSWER 4

Score 1


https://kindavim.app

i'm the creator. it brings Vim Mode in text fields through the macOS Accessibility APIs (text manipulation), and Vim Mode in UI elements through key remapping. it's a paid app (there's trial), but the source is also open. so anyone who wants to can download the source, remove the licensing and compile it themselves.