Redhat Overall review 1 VIM editor using the delete owner column to delete the specified row

Source: Internet
Author: User

Copy the file/home/student/vimfile.txt to/home/student/longlisting.txt on the server. Use the VIM editor to change the/home/student/longlisting.txt file according to the following requirements:

. Delete the file owner column. Do not remove any spaces.

. Delete documents lines and pictures lines.

Save the file when you are finished editing.

Copy file/home/student/vimfile.txt to/home/student/longlisting.txt

$ cp/home/student/vimfile.txt/home/student/longlisting.txt

Use Vim to edit a file and play the benefits of a visual mode

$ vim/home/student/longlisting.txt

Removes the Owner column from the file.

Use the arrow keys to position the cursor to the first character of the group owner column. Use CTRL + V to enter the visual mode. Use the arrow keys to position the cursor to the last character of the end row of the group owner column. Use X to delete the selection.

Delete document lines and pictures rows. This time Use capital V to enter the visual mode, which will automatically select the entire row.

Use the arrow keys to position the cursor on any character in the documents line, using upper case V to enter the visual mode. The system will select a whole line, as shown on the screen. Use X to delete the selection. Repeats the picture row.

Save the file and exit the editor.

Press ESC, and then enter ": Wq" to write to the file, and then exit and save.

Redhat Overall review 1 VIM editor using the delete owner column to delete the specified row

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.