Hacker News new | ask | show | jobs
by kittxkat 4988 days ago
What I did, for example, was that I enabled vi-mode in my shell but also re-enabled some emacs-keybindings like CTRL-E and CTRL-A for ending and beginning of a command because I learned them like a lifetime ago when I first got used to the shell without even knowing they were emacs-keybindings.

But that way I am also able to hit ESC and do a / for a search, like within vim, which I am much more used to than a search in emacs. I found that way combines the best of both worlds.

1 comments

I use vi-mode in my shell but the end/beginning Vi commands (A,I,0,$,etc) are the only ones I find myself using regularly. I also use c[motion] and d[motion] on occasion, but that is pretty much it.

I'm not convinced that powerful editing is necessary for the command line, but familiar shortcuts for beginning/end seem very useful.

There are absolutely times that powerful editing is mandatory at the command line; I am skeptical that there are times when powerful editing at the command line is necessary but pulling the line into your $EDITOR (v in vi-mode, ctrl-x ctrl-e in emacs-mode) is not the best way to deal with it.
but it's not about powerful editing alone. it's about nice things that are just in your fingertips, say using 'df ' to delete a --long-argument=/a/very/long/path from a command...
fair enough