Stefan Berger
Stefan Berger

Reputation: 315

how to select inside spaces in vim

I have a shell script with the content

curl http://some-url.com -H "Content-Type: text/csv charset=UTF-8"

opened in vim. The cursor sits on the 's' in csv, and I want to replace text/csv by application/xml. How do I do that with the least number of key strokes? I tried "ciw", but that replaces only 'csv', not 'text/csv' Also "ci " (with a space in the end) doesn't work.

Upvotes: 6

Views: 997

Answers (1)

bdecaf
bdecaf

Reputation: 4732

The command is ciW

The W stands for WORD (instead of w for word)

There is a question discussing the details here: Vim: word vs WORD

Upvotes: 6

Related Questions