Hello, I am editing a text file with vi. I am using 's' in command mode to substitute certain text string. For example I am using .,$s/dog/cat/g. This changes all the occurences of 'dog' to 'cat'.
Is there a way that I can recall this command in vi(similar to esc k)? Sometimes I want to make a slight modification and run the command again.
Also, is there a good document that covers vi in detail? I learned the substiute command above form a co-worker but I'm not really sure what all the characters (.,$s/dog/cat/g)mean.
Is there a way that I can recall this command in vi(similar to esc k)? Sometimes I want to make a slight modification and run the command again.
Also, is there a good document that covers vi in detail? I learned the substiute command above form a co-worker but I'm not really sure what all the characters (.,$s/dog/cat/g)mean.