vim Vim Text Objects Select a word without surrounding white space

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

Suppose we want to select a word without surrounding white spaces, use the text object iw for inner word using visual mode:

  1. Got to normal mode by pressing ESC

  2. Type viw at the beginning of a word

  3. This will select the inner word

    viw



Got any vim Question?