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)