Iterm 2 - go back one word - minitip
Ok this is a mini tip, but it's something so many developers don't know....
When using iterm2 on osx, you often need to go back and fix a typo in a long line of script, or you need to go back a few words....
ctrl+a - go to start of line
ctrl+e - go to the end of line
esc+f - go forward one word
est+b - go back one word.
The bottom 2 are particular useful as they allow you go back and fix typo's without using the long and tedious back buttons.
A lot of people will know this, but I've showed it to a few people this week and it blew their mind.
Written by Mark Tooth
Related protips
6 Responses
I did not know this ...
Its a stupid shortcut in all fairness. But out the box people wouldnt know and the time spent holding the back key is mental.
there is no any relation of these features with iterm.
By the way there is a typo for the last one, it's also "esc" not "est".
You can position you cursor on the desired spot on the command line in Iterm2 with option + mouse click too.
@astropanic: Can't believe I didn't know that. THANK YOU.