sunsolaris

thomasliju
thomasliju used Ask the Experts™
on
In sunsolaris

if we are using vi editor..
how we will remove all characters from the cursor towards the end
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Brian UtterbackPrinciple Software Engineer

Commented:
End of the line, or end of the file? To delete from the cursor to the end of the line, simply type capital "D". After that, if you want to delete from the next line to the end of the file (assuming you are not already at the last line of the file) type "j" followed by ":.,$d" and the press carriage return.
Commented:
Press "d"  then "$"  will delete until end of the line
Pressing "d" then "G" will delete until end of the file.

Author

Commented:
options helped.

Thank you.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial