VIM basic CommandsVim Editor is case sensitive
i editor enters text input mode, ESC exits edit mode
[Baskspace] Key (or press [ctrl-h] key) to delete text
[Return] key to the next line
[ESC] key into command mode, regardless of the
Method One1, press CTRL + SHIF +; Enter the bottom row mode2. Write the line number that you want to indent in bulk, follow the format: "line number 1, line number 2>" Input command, if you want to indent a tab value from 4 to 11 lines in bulk, the
June 21 Task5.5 Entering edit mode5.6 VIM Command mode5.7 Vim PracticeExtendedSpecial usage of vim http://www.apelearn.com/bbs/thread-9334-1-1.htmlVim Common shortcut key summary http://www.apelearn.com/bbs/thread-407-1-1.htmlVim quickly deletes a
VIM +n filename: Cursor positioned to nth row of filenameShortcut keys:J Move Down, K move up, H shift, L move right, ctrl+f or pageup up one screen, ctrl+b or pagedown down one screen.GG moves to the first line, and G moves to the last row.NG, move
First, the common editor:Nano, Gedit, VI, Vim.The difference between VI and VIM:Vim is an enhanced version of VI.Three, the principle:When opened with an editor, it is opened in memory. After the save is written to the file.Four, several
/********************************************************************** * Vim regular expression match replacement String * Description: * with Vim has been used for several years, usually also replace the string more, and rarely replaced with
Find a replacement App example:
Copy/etc/profile to/tmp/directory, remove white space characters from the beginning of the/tmp/profile file with the Find replacement command:%[email protected]^[[:space:]]\[email protected]@g
Copy the/etc/
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,
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
Vim, Gedit is a common Linux editor, today we will talk about Vim.Note: Vim is an upgraded version of VI that is not only compatible with all VI directives, but also has some new features in it. Therefore, some time vim, VI will be mixed, sometimes
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
Note: These commands have a colon before them:Edit Exit VimWhen you are finished editing the document, you are ready to exit VI when you return to the shell, you can use one of the following methods.In command mode, double-press two capital Letter Z,
Basic concept: A powerful text editor developed by VIOpen File:Vim file nameVim + N File name —————— How many lines of file are opened directlyVim three modes of operationCommand modeCommand mode toggle Input modeInput modeLast-line modeSwitching
Vim is a very useful text editor for Linux, and people who develop under Linux are familiar with VIM commands.1. Open on line 143thVim +143 filename.txt2. Read-only mode openVim-r/tmp/a.txt3. Force SaveCommand mode wq!4. Go to the end of the current
1) yy (function Description: Copy the current line of the cursor)Y digit y (function Description: Copy a paragraph (from the first line to the first line))2) P (function Description: Arrow moves to Destination line to paste)3) U (function
Https://github.com/ma6174/vim-deprecated Easy Installation Method:Open the terminal and execute the following command to install it automatically:wget -qO- https://raw.github.com/ma6174/vim/master/setup.sh | sh -x
or manually install it
Three modes of VIM:
Command modeESC enters in any mode
Edit modeCommand mode--"edit mode"
I: Before the character of the current cursor
A: After the character of the current cursor
O: Create a new row
5.1:vi and Vim:Vim is a text editing tool for all Linux systems, the same as with Windows Notepad, used to manipulate and edit files:Vim is an upgraded version of VI, VIM (will display font color): VI (no color is displayed)1, the installation of
Linux Vi/vimAll UNIX like systems will be built into the VI document editor, and other document editors will not necessarily exist.But at the moment we use more of the Vim editor.Vim has the ability to edit the program, can be active in font color
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