Joined March 2012
·

Jesus Lopez

Chief Architect at SGN
·
Alameda
·
·
·

Posted to Shortcuts that save time over 1 year ago

I just set -o vi (or set editing-mode vi on my .inputrc). Replaces all the bindings mentioned above with vi ones. To fix this particular typo: ESC 0 fr rt (spaces added for readability)
ESC: enter editing mode
0: go to start of line
fr: goto first r (the r in 'gir'), alternatively ll (right, right)
rt: replace letter with t
A mouthful indeed, but second nature if you're used to vim. A primary advantage is that your hands don't have to leave the home position in search of arrow keys or what not...

Achievements
133 Karma
0 Total ProTip Views