title: visual selection in bash / cli
body: <p>Is there a way to make <strong>bash</strong> use <strong>visual selections</strong> for <strong>text replacement</strong>? </p>
  
  <p>Standard text input conventions don't work: </p>
  
  <ol>
  <li>If you press Shift+Left Arrow, the character to the left should be visually selected</li>
  <li>If you press Ctrl+Left Arrow, the cursor should move to the beginning of the previous word</li>
  <li>If you press Shift+Ctrl+Left Arrow, the word to the left should be visually selected</li>
  <li>If you visually select some text then press any key, the text should be replaced with the text of the key you press</li>
  </ol>
  
  <p>Vi mode (set -o vi) visual selection conventions don't work: </p>
  
  <ol>
  <li>If you enter normal mode, press 'v' to enter visual selection, then press 'h', it should visually select the character to the left</li>
  <li>If you enter normal mode, press 'v' to enter visual selection, then press 'B', it should visually select the word to the left</li>
  <li>If you visually select some text and then press 'R', it should erase the text and leave you typing the replacement</li>
  </ol>