[Ilugc] Re: help: vi editor - to insert new line
- From: gopu.bhaskar@xxxxxxxxx (gopu.bhaskar@xxxxxxxxx)
- Date: Wed Jan 5 11:50:35 2005
To be more clearer,
How to insert "tab"(\t as in c programming) and
"newline"(\n as in c programming) through the
substitution command(1,$s/oldtext/newtext/g).
:%s/$/\r To insert new line at the end of each line in the file.
Similarly you can use \t for tabs.
Confidentiality Notice
The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
Mailadmin@xxxxxxxxx immediately
and destroy all copies of this message and any attachments.
Other related posts: