For changing the case in vi follow below step:
:%s/.*/\L&/
:%s/.*/\U&/
I observe 2 different behaviors of vi that I cannot explain. 2 different machines, same distribution
On one machine when I underline some text with the mouse (not in append mode), vi turns to a VISUAL mode, and not in the other machine.
I have a large file which has "some string"so many times, i want it to be replaced with "other string" at all places, using vi or vim editor? Is there any way to do that?