Vim Editor Beginner (iv)

Source: Internet
Author: User

The P key is pasted after the cursor

The P key is pasted before the cursor

V to enter line visual mode, after which you can select text by row

M key to place tag, followed by A-Z to name tag

' Key (reverse single quotation mark, above Tab key) followed by A-Z, you can jump to this mark

' Key (single quote) followed by A-Z to jump to the beginning of the line where the tag is located

: Marks lists all the tags

Y-Key to copy the selected text

Y key or yy the entire line where the cursor is copied

! Key in Visual mode, first select the text, press! The key is followed by a system command that takes the selected text as input and then replaces the selected text with the output from the command execution.

Under normal mode, press! Key followed by a jump action, the current cursor is the line to the action jump as input, and then enter the system command, the output of command execution to replace the input

!! Filter the line where the current cursor is located

: Edit followed by a file name that will close the current file and open the specified file, the current file needs to be saved manually or forced not to save

: View followed by a file name that closes the current file and opens the specified file as read-only, and the current file needs to be saved manually or forced not to save

When you open a file using the VIM command on the system command line, you can take multiple filenames after vim, and the first file is displayed by default when you press ENTER

: Next edits the next file, the current file needs to be manually saved or forced not saved, the specified save can be used: Wnext, forced not save can be used: next!

:p Rev edits the previous file, similar to: Next

: First editing of a file

: Last edit Final file

N ctrl-^ Edit the nth file, if the previous number is not added to the previous file

: Set Autowrite is automatically saved so that Vim automatically saves changes whenever you want to leave the current file

: Set Noautowrite off Auto-save

: Args lists the series of files currently being edited, and the file you are currently in is enclosed in brackets [].

: Match matches the text highlighting for a given pattern, for example: Match error/todo/will highlight all TODO in syntactically incorrect colors

: Highlight to see which highlighted names are available

: Match none Clear: match

Vim Editor Beginner (iv)

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.