Vim-2-advanced usage

Source: Internet
Author: User

View help input: tab help, which can be opened on a new tab. jump to a topic: place the cursor over a label (e.g. | bars |) and press Ctrl-] to jump back: Type A CTRL-T or CTRL-O (repeat to continue backward) copying and deleting a Text object is a character, behavior unit. W, e is used to start or end the word from the cursor to the next word. Therefore, to delete the entire word, you have to move the cursor to the beginning of the word, which is very troublesome, You can use a Text object to solve this problem: AW: a word, indicating a word and its blank space. Daw indicates deleting the word where the cursor is located and the blank IW: inner word, which also indicates a word, however, it does not include the blank space after the word as: a sentence, which indicates a sentence and the blank space behind it. Das indicates that the sentence where the cursor is deleted and the blank space is: inner sentence, which also indicates a sentence, however, it does not include the blank macro behind the sentence. Press the Q key to start recording the Macro. Generally, it keeps up with the register name. The register can contain 26 English letters, such as Qm, recording the macro into the M register, recording a series of operations, and then record the Macro. Press Q again to exit macro recording, and press @ M to play the macro in the M register, you can add a number to indicate the number of playbacks ., for repeated playback, Press @ to display the macro, clipboard y, D, C, X, and other commands that have been played before the playback are all stored in the clipboard of VIM. How can I interact with the clipboard of the system? Add "* before these commands to vimdiffvimdiff. java B. after the file is changed in Java, VIM does not (not necessarily) Compare the file in real time. You need to use the diffupdate command to re-compare the text. You can select the text in visual mode and then use GQ to format the text. (For example, set textwidth = 100 in vimrc)
Search for blank rows:/^ \ n \ This method can only find blank rows with no spaces at the beginning...

From Weizhi note (wiz)

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.