News for hackers. Stuff that matters.
Re:Vim Anywhere by caymanjim on Friday February 16, 2018 @04:57PM (#16396831)
These are Emacs shortcuts, not Vim. They're available in bash (the default MacOS shell) because bash uses the readline library. You can also put readline into Vi mode and use Vi/Vim shortcuts, but none of this has anything to do with editing files.
Re:Vim Anywhere by simplify on Friday February 16, 2018 @05:15PM (#16396955)
> but none of this has anything to do with editing files.

Why not? You can use these shortcuts across OS X. That includes your web browser and any other GUI you have on your machine (I use them heavily in notational velocity).

Re:Vim Anywhere by saagarjha on Saturday February 17, 2018 @01:37AM (#16399396)
They work anywhere there's a system-provided text field.
Re:Vim Anywhere by fimdomeio on Friday February 16, 2018 @06:19PM (#16397483)
fish shell has a vim mode for anyone interested
Re:Vim Anywhere by xelxebar on Saturday February 17, 2018 @02:01AM (#16399451)
This is actually a readline thing, so you can edit your $HOME/.inputrc with

   set editing-mode vi
and get the vi bindings in everything that supports readline, e.g. the Python shell etc. There's tons more that can be customized here. You can even have it put the current vi mode in your prompt and stuff like that.

https://www.gnu.org/software/bash/manual/html_node/Readline-...

Re:Vim Anywhere by hnzix on Friday February 16, 2018 @07:31PM (#16397972)
Bash and zsh also have vim mode. The bash mode is more like vi though.
Re:Vim Anywhere by egwynn on Friday February 16, 2018 @07:39PM (#16398028)
Indeed, it’s in fact called “vi mode” in the bash/readline docs.