Joined June 2012
·
amr

Amr Mostafa

Egypt, Cairo
·
·

Posted to Shortcuts that save time over 1 year ago

More info:

This is (lib)readline functionality, and by default it comes with 2 line editing modes, emacs (the default) and vim. So if you know emacs (or don't), you should try these too:

ALT-B and ALT-F (move one word backward and forward)

CTRL-Y (to Yank/Paste what was cut using CTRL-K), and yes it works just like a clipboard.

ALT-D (to remove the next word)

You could also switch libreadline to use the vim shortcuts if vim is your thing. I prefer to get used to the emacs ones since they are the default everywhere.

Enjoy

Achievements
61 Karma
0 Total ProTip Views
Interests & Skills