News for hackers. Stuff that matters.
Re:Moving efficiently in the CLI by okket on Friday January 26, 2018 @04:53PM (#16243194)
I am a fan of vi/vim, esp. as a remote shell editor. But the vi support in readline CLIs is overkill IMHO. I don't see the need for the 'extra power' of vi there, esp. the modes. A few well known keyboard short cuts are just fine for a CLI.

This also works the other way around: A few EMACS based shortcuts are the better 'lowest common denominator' than to force vi modes on everyone. Many are not willing to go down the vi/vim path, for various reasons.

Re:Moving efficiently in the CLI by imiric on Saturday January 27, 2018 @03:05AM (#16245318)
I disagree, and find the vi mode (and extended Vim bindings) very useful in the shell.

Consider a long cURL command split over several lines. If every option is on a separate line, removing one is a `dd` keystroke away. Adding a new option is also very efficient.

Extended Vim bindings will also allow you to delete everything within brackets/delimiters (e.g. `di"`) or delete everything up until a character, etc. These are all simple keystrokes that translate well to the shell.

You could also open the command in your $EDITOR anyway (bound to `V` for me), but I reserve that for really long and unwieldy commands.

Re:Moving efficiently in the CLI by jethro_tell on Friday January 26, 2018 @05:09PM (#16243297)
HOW DO YOU EXIT THIS SHELL??
Re:Moving efficiently in the CLI by okket on Friday January 26, 2018 @05:11PM (#16243311)
Re:Moving efficiently in the CLI by Groxx on Friday January 26, 2018 @05:28PM (#16243432)
ed(1) is the standard editor

https://twitter.com/ed1conf