News for hackers. Stuff that matters.
Re:Enhancements to Shell and Vim Productivity by erikcw on Monday October 15, 2012 @12:27PM (#4655765)
As a Vim user, I've always been drawn toward using vi keybindings in bash.

However, as a Mac user, all of the Cocoa text widgets more or less support emacs keybindings, so having a working knowledge of basic emacs movement commands has been very useful.

The emacs bash/readline keybindings also have a really neat trick that the vi bindings don't -- keyboard macros!

Ctrl-( to start recording, Ctrl-) to stop, and Ctrl-x to execute.

Re:Enhancements to Shell and Vim Productivity by nickkthequick on Monday October 15, 2012 @12:33PM (#4655802)
How is Ctrl- different from using "q" in vi?
Re:Enhancements to Shell and Vim Productivity by babarock on Monday October 15, 2012 @12:51PM (#4655907)
It's a matter of muscle memory. I used Vim exclusively for several years, and used vi-mode on my shells. Now that I've switched to emacs, my fingers are more comfortable using Ctrl-<key> for commands.
Re:Enhancements to Shell and Vim Productivity by erikcw on Wednesday October 17, 2012 @01:08PM (#4665412)
At least for me, macros don't work in Bash vi-mode. Perhaps it is only implemented in emacs-mode? Or maybe it is the readline version I have in OSX.