vim Vim Text Objects Select a word with surrounding white space


Suppose we want to select a word with a surrounding white space, use the text object aw for around a word using visual mode:

  1. Got to normal mode by pressing ESC

  2. Type vaw at the beginning of a word

  3. This will select the word with white space