vimtricks.wiki Concise Vim tricks, one at a time.

How do you use a macro to convert single quotes to double quotes?

Answer

qaf'r"q

Explanation

Record a macro that finds the next single quote with f' and replaces it with a double quote using r". Run 100@a to convert all.

Next

How do you yank a single word into a named register?