Search and replace: substitute



:%s/Old/New/              Replace Old by New.
:%s/^    /\t/             Replace leading 4-spaces by a tab.
:%s/$/./                  Put a . at the end of every line.
:'<,'>s/...         Subtitute in range.

To select range press v and then use the navigation keys. Then hit :