KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What is the easiest way to replace all occurrences of string_a with string_b while at the same time changing anything that was already string_b into string_a ? My current method is as follows: :s/string_a/string_c/g :s/string_b/string_a/g :s/string_c/string_b/g Although this works, it requires extra typing and seems inefficient. Does anybody know of a better way to do this?
Tags (comma-separated)
Save Edits
Cancel