Site down right now? Call or text, and I'll start the same day. (910) 338-4964
Randy Johnson
← All posts

How to search and replace text in VIM

This post is short and sweet for now. I plan on adding more commands as I get more familiar with VIM. Today I wanted to search and replace text in a JSON file using VIM. Turns out it is rather easy. :%s/"login"/"username"/g In my situation I needed ...

This post is short and sweet for now. I plan on adding more commands as I get more familiar with VIM.

Today I wanted to search and replace text in a JSON file using VIM.

Turns out it is rather easy.

:%s/"login"/"username"/g

In my situation I needed to include the quotes too and it handled it just fine. Go VIM.

More posts