Move to the next space in bash

10 Aug 2014

As I am learning all the bash shortcuts, I've found that moving forward and backward by words are not very useful. I don't normally want that.

Moving forward and backward by spaces seem to be more valuabel.

You can add these lines to ~/.bash_profile

bind '"\C-f":vi-fWord' bind '"\C-b":vi-bWord'

And you can use Ctrl+F and Ctrl+B to move forward to the next space or backward to the previous space. Reference

Give it a kudos