1. Direction keyH: equivalent to left buttonL: Equivalent to right-clickK: equivalent to the upper keyJ: equivalent to the next key###############################################################2. Move the cursorMove the cursor to the first line of
from:http://cenalulu.github.io/linux/all-vim-cheatsheat/The most complete Vim shortcut key map in history--getting to the advanced level
Article welcome reprint, but reproduced when please retain this paragraph text, and placed on the top of
vim Normal mode, insert mode, command mode switchVIM open, cursor Movement, edit mode, normal mode, command mode toggle commandThe cursor can be moved in the screen text using either the left or right arrow keys on the keyboard or the HJKL letter
Vim is the most common text editor on Linux systems, and almost any Linux distribution will be installed by default. Yes, it's a free software. It's good to learn the basic operation commands of the Vim editor, which can make your work more
Vim is called the god of the editor, so when we operate the Linux system, does the editing work feel powerless? Today, I am talking about some of the VIM's operational commands I have summed up with you to share, there are shortcomings also please
The cursor moves to the last line of the file:Shift+g or G (Command mode, edit mode)The cursor moves to the first line of the file:GgThe cursor moves to the beginning of the current line:^ 0 HomeThe cursor moves to the end of the current line:$
Vim is divided into three different modes: Command mode, edit mode, last line mode.Command mode: Copy, paste, replace, move cursor search and so on.Edit mode: Used to add, delete, modify, and so on the document.Last-line mode: File save, launch,
Vim can be copied and pasted in multiple sections. That is, the content x is copied to the register "1", the content y is copied to the register "2", paste can be selected from "1" or "2" paste.(1) VIM has 13 pasteboard, respectively 0, 1, 2 、...、 9,
Create a modified file with vimVim Text EditorFormat vim [[/directory/] file name]Three different modesCommand modeInput mode (insert mode) input contentLast-line mode save and exitTo hit the corresponding command in the appropriate modeCommand mode
First, enter the editing mode1, according to large I positioning the beginning of the big line to edit2. Press small I to edit by the line where the cursor is located3, press big A from the end of the line to edit4, press small A from the current
Basis:: W Save: q! forced exit not saved: wq! save exitX Delete the following character x delete the previous characterDD: Delete Row 5DD: Delete 5 rowsJ: Remove line breaks to make the next line come upU: Undo Last ActionI insert before the cursor
The Vim editor is used in Linux. After finding some information, I tried to configure it. Here are some procedures.The first thing you need to know is that the VIM-related configuration is written in the ~/.VIMRC file. My notes below only configure
Shortcut keys for the VIM editor(i) in command modeTo move the cursor:Move front and back: H move forward one unit in the same line L backwardMove up and down: K move J up one line downHL can only move one unit, inconvenientNumber 0 moves to the
Vim is an upgraded version of VIThe most obvious difference is that vim displays the contents of the file into a highlighted color.There are many conditions for vim to display colors, and the same file will show different colors in various
General Mode Common operation"[Ctrl] + F" screen moves down one page (equivalent to page DOWN key)"[Ctrl] + B" screen moves up one page (equivalent to page UP key)"[0] or [Home]" cursor moves to the front of the current line"[$] or [end]" cursor
Use: Help to open Vim's aid document found to be full of bitter English, below to provide Chinese Help document installation method:First go to URL http://vimcdoc.sourceforge.net/Select "Latest platform independent tarball,including an LINUX/BSD
I onK DownJ LeftL Right(Move up a section) Move down a section* Search KeywordsD DeleteY copyP PasteH insertionH-Head Plugo Open a line belowO Open a line aboveF-Jump specified keywordF forward Jump Specify keywordE-Letter forward JumpW Letter
First, the basic file operation
Create a file
Touch Vim.txt
Open File
Vim Vim.txtSecond, basic editing operations1. Normal mode
YY copies the current line of the cursor.
P Paste to the next line where the cursor
Vim Introduction Vim is a powerful full-screen text editor, which is the most commonly used text editor on Linux/unix, and its function is to create, edit and display text files. Vim has no menu, only commands.For the pure novice, these three
Method OneComments:"Ctrl" + "V" enters the column editing mode, moves the cursor down or up, marks the beginning of the line to be annotated, then presses the uppercase I ("Shift" + "I"), and then inserts an annotation, such as "//", and then ESC,
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