Computer Science - Unix - Discussion
Discussion Forum : Unix - Section 2 (Q.No. 2)
2.
Which command will be used with vi editor to replace text from cursor to right?
Discussion:
4 comments Page 1 of 1.
John said:
10 years ago
Nothing brother, when you are in command mode of vi editor, just move the cursor to the position from where you want to replace text and then enter "shift+r" (R).
Now onwards what ever you type will replace the existing text. To exit out of replacing text just press "esc" and it will take you back to the command mode.
Now onwards what ever you type will replace the existing text. To exit out of replacing text just press "esc" and it will take you back to the command mode.
(1)
Shikha said:
1 decade ago
Can anyone explain this command using example?
Jayachitra said:
1 decade ago
R: Replaces text from cursor to right(exiting text overwritten).
Siddhi said:
1 decade ago
r: Replace single character under cursor (no <Esc> needed).
R: Replace characters, starting with current cursor position, until <Esc> hit.
R: Replace characters, starting with current cursor position, until <Esc> hit.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers