How to replace text between quotes in vi

Use ci", which means: change what inside the double quotes.

You can also manipulate other text objects in a similar way, e.g.:

  • ci' – change inside the single quotes
  • ciw – change inside a word
  • ci( – change inside parentheses
  • dit – delete inside an HTML tag, etc.

More about different vim text objects here.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)