The u Key triggers the undo Undo command, which revokes the latest changes. Any content entered or deleted during this period is treated as a modification, starting with insert mode until normal mode is returned. Exception: If you use the ,,, these
CW deletes the text from the cursor position to the end of the current word and switches to insert mode.
DW deletes the text from the cursor position to the end of the current word and moves to the first letter of the next word.
NERD Commenter is a classic code comment plugin for Vim, which, by name, is the same author as the NERD tree. With this plugin, you can annotate files of multiple file types in different ways and quickly. This is a powerful tool for improving
After years of contact with Vim, thought to the top of the mountain is actually still halfway up.This essay records the recent learning of several plugins, memo.First Plugin:vundleA few years ago has been to change their own plug-ins, put into the.
Vi:visual Interface Visual InterfaceVim:vi Improvedvi Enhanced VersionFull screen editor, modal editorVim mode:
Edit mode (Command mode)
Input mode
Last-line mode
Mode conversion:Edit--Input: I: In front of the character of
Basically vim can be divided into three states, namely command mode, insert mode, and bottom line mode.Mode Switching methodEnter "I" in the command mode, enter the Insert mode, you can edit the text content, after editing, "ESC" key exit edit,
Vim shortcut keys, in order to prevent too cumbersome, only write their usual, follow-up supplement. Introduction to the article Vim Basic learning, detailed see reproduced in the article Vim shortcut key1. Open the file Vim + file starts at the end
When using vim to accidentally touch the Q key, the lower left corner of the "recording" This logo, which is a powerful function of vim. He can record a macro and record all of your keyboard input, including input in insert mode, various commands
First, Introduction There are only three types of editors in the world, EMACS, Vim, and others. The times we are in are very fortunate, with more and more editors, compared to the old vim and Emacs, they are called modern editors. Let's take a look
NYW//Copy the cursor after n wordsD//Delete to the end of a line D $ //Delete to end of a line (price on command) 1, move by Screen (1) The following commands are most
1 * Copyright (c) Level 2012, Yantai University School of Computer Science2 * All rights reserved.3 * Pay Record Super4 * Completion Date: May 15, 20155 * Version number: v1.06 * Learning topic: VIM Common commands7 * Working environment: Red Hat 5.8
First, move the cursor1, left shift H, right shift L, Move down J, move up K2. Page Down CTRL + F, PAGE up Ctrl + B3. Turn down half a page Ctrl + D, turn up half a page Ctrl + U4, move to the end of the line $, move to the beginning of 0 (number),
The first vim file mode is the basic mode, you can move the cursor to view the file.Insert mode:Press I into the insert mode, you can write something, need to save press: W, need to save and exit Press: Wq.Then press ESC to go back to basic
As in the following section of codeWe are going to make the code more readable, and adding spaces before and after the + changes to the following:Make the change repeatablef+Executes the find character command on the current line, the S command
Vim as a custom-made editor, it is really very powerful, here I say in programming, using VIM and makefile some of the skills, just personal programming habits;When you finish editing the source code, want to compile links and other work, you can
Compose repeatable ChangesThere are many ways to implement an action in Vim, but choosing a method that performs the least steps can make the method more repeatable.The following text we want to delete nigh.1) Delete BackwardThe cursor starts at H
The recent use of VIM's regular replacement feature is very powerfulA file:1,2,34,5,61,2,34,5,61,2,34,5,61,2,34,5,61,2,34,5,6Now you need to delete the contents before the comma, then in the vim-typed command::%s/.*,//gThe resulting results are: 3
Fast Jump (cmd model) within Vim's line^: The cursor jumps quickly to the first character of the bank header .$: The cursor quickly jumps to the last character at the end of the bank.NW: The cursor quickly jumps to the header of n fields after
This article is written for VIM like me, the use of vim-go plug-in, although the steps are simple but not enough detailed, close this article to do record and share. Welcome to the great God to correct the supplement!In particular , this blog post
Vi-vim basic operationsVi-vim Editor: Full Screen Editor and modular EditorVim mode:Edit mode (command mode)Input modeLast Row mode (bottom row Mode)Mode Conversion:Edit mode --> input mode:I: Enter it before the character of the current cursorI:
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