4 ms·
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 V
by caymanjim 9y ago
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.
- simplify 9y ago> 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).
- deleted 9y ago[deleted]
- fimdomeio 9y agofish shell has a vim mode for anyone interested
- hnzix 9y agoBash and zsh also have vim mode. The bash mode is more like vi though.
- egwynn 9y agoIndeed, it’s in fact called “vi mode” in the bash/readline docs.
- xelxebar 9y agoThis 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-Init-File.html https://www.gnu.org/software/bash/manual/html_node/Readline-...
- saagarjha 9y agoThey work anywhere there's a system-provided text field.