Ctrl + A and Ctrl + E bring you to the beginning and end of the command line.
How do you jump to the middle? or at least 20 chars or so?
If any of you use bash a lot and type quickly, you end up 'flicking' back and forth from beginning to end quickly.
I'd like to jump really quickly (another control combo w/o loss of Ctrl + A and Ctrl + E ability as one example) to an approximate middle vs holding the Right or Left key down and waiting or needing to jump into vi mode.
bind -l
, and try to find what those those keywords do. There's one 'vi-column' that looks interesting. or try the "forward-word" (ESC-f) backwards-word (ESC-b) tags.ALT
+<-
(left arrow) orALT
+->
(right arrow) to move between non-characters/numbers. This works in AWS Linux too. Also don't forgetCTRL
+u
andCTRL
+k
for delete from cursor to left/right margins respectively andCTRL
+w
for deleting (backspace) one "word" which is defined as spaces.