Vim plugin on the editor, common to the quick parts

Source: Internet
Author: User
Tags save file

Plug-in commands commonly used by "vim"

[ESC]Exit Edit(input,Insert)mode, back in command mode(Common)
I, I
Enter insert mode(Insert mode):
Ito "Insert from the current cursor location",Ifor "The first non-null in the current row
Geff start inserting ". (Common)
A, a
Enter insert mode(Insert mode):
Ato start inserting from the next character where the cursor is currently located,Afor the FROM cursor
start inserting at the last character of the row. (Common)
O, O
Enter insert mode(Insert mode):
This is the English alphabet .Ois case-sensitive. oto insert at the next line where the cursor is currently located
a new line ";Oinsert a new line on the previous line where the cursor is currently located! (often
with)

R
Enter replacement mode (Replace mode) :
R will only replace the one character where the cursor is located at a time;( common )

===========================

H Cursor moves one character to the left
J Cursor moves down one character
K cursor moves up one character
L Cursor moves one character to the right

NG
N n 20g
section line
GG Move to the first line of this file, equivalent to 1g Ah! ( common )

X
in one line of words,x deletes a character backwards ( equivalent to the [del] key )
Nx
n is a number that continuously deletes n characters backwards. For example, I'm going to delete ten
characters, " 10x".

DD Delete the entire column where the cursor is located ( common )

Ndd
n is a number. Delete the down n column where the cursor is located , for example, 20dd to delete the column ( often
use )

D1G Delete all data from the first row of the cursor
DG deletes all data from the last row of the cursor

YY the line where the cursor is copied ( common )
Nyy
n is a number. The bottom n column where the cursor is copied , for example, 20yy is a copy of the column ( often
use )

P, p
Pto paste the copied data on a line below the cursor,Pthen stick to the cursor on a row! Lift
For example, I currently have a cursor in the20and has replicated theTenrow data. Then press theP
after the that10The row data will be posted in the original -after the line, that is, the +line to start pasting.
But if it is pressedPit? So the original first -The guild was pushed to become -line. (often
with)
Np:nis a number, which indicates how many times it is pasted
URevoke
Ctrl + Y: Redo
==========================
last-line mode
: W (Save File)

Vim plugin on the editor, common to the quick parts

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.