5

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.

Stefan Berger
  • 195
  • 14

1 Answers1

5

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

Community
  • 1
  • 1
bdecaf
  • 4,652
  • 23
  • 44