Vim shortcut key classification http://www.cnblogs.com/jikey/archive/2011/12/28/2304341.html one. Mobile:H,j,k,l: Left, bottom, top, right.W: The first word of the next word.E: The ending of the next word.B: The word head of the previous word.Two.
Content from https://www.cnblogs.com/chenlogin/p/6245958.htmlI picked a few that I think are most commonly used, as follows:Default to Normal mode (ESC enters this mode in any mode)I: Enter input mode: Enter Command mode: Q exit: Wq Save and exit: W
have been looking to see if there are quick ways to Select all , but many of the web is repeated, and the wrong, such as:1, $y, what is this? To write also written: 1, $y, but I tell you, write: 1, $y is all copied, not a full selectionDG, this is
First, the use of vimVim is a text editor developed from VI. Code completion, compilation and error jumps and other convenient programming features are particularly rich, is widely used in programmers, and Emacs parallel to become UNIX-like system
Windows operations 1. Introduction to Windows operationVim can open multiple windows in one interface for editing, which are called Vim windows. There are many ways to open a method, for example, you can use the command line mode input to :new open
Document Encryption 1. Create an encrypted document$ vim -x file1Enter your password to confirm the password so that the next time you open, VIM will ask you to enter the passwordExecuting external commands in vimEnter command-line mode ! to execute
Help on viewing Help in System 1.vim
Press F1 vim to open your own preset help document in normal mode
Enter :h shiftwidth shiftwidth The open Help file in command line mode
Input :ver display version and parameters in command line
Find 1. Quick FindEnter Normal mode / and then type the string you want to find and press ENTER to find it. ?is the same as the / function, but ? looks up and / down. After entering the lookup, the input n and N can continue to find n the expression
Linux EditorEdit the file to be quick and not brokenWhat is the current editor? Learn Which? The first thing to consider is what to do with the editor, if you are editing plain text files, no choice, only vim.Common in Linux system Default editor is:
Find and replace/pattern search pattern from the beginning of the cursor to the end of the file, then press N or NN repeats the last search command in the same directionN repeats the last search command in the opposite directionn or N from the word
One, when the Vim is not installed, prompt installation[Email protected]:~/test$ VIM ABCThe program ' Vim ' is already included in the following packages:* VIM* Vim-gnome* Vim-tiny* Vim-athena* Vim-athena-py2* Vim-gnome-py2* VIM-GTK* Vim-gtk-py2*
Enter edit modeEnter the mode in which the document can be edited
Key
function
I
Insert in current character
I
Insert at the beginning of the line where the cursor is located
Enter edit mode650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/08/c54b24b003d7fb5ce5ddb62070ec9022.png-wh_500x0-wm_3 -wmp_4-s_1073373071.png "title=" 3.png "alt=" C54b24b003d7fb5ce5ddb62070ec9022.png-wh_ "/> I enter edit mode, the cursor
Location:/ETC/VIM/VIMRCIt is recommended to use Gedit for configuration. Even with the command: sudo gedit/etc/vim/vimrcSet Mouse=a"Enable Mouse usage (all modes) set confirm"? Should be deleted for questioning to determine"Indent Lattice set
1. Beginning and end of line^: Move to the beginning of the line$: Move to end of line2. File header, end of fileGG: File HeaderG: End of File3. Show current positionCtrl+g: Show Current positionSet Number: Sets display line numbers, set Nonumber:
First, IntroductionVim is an enhanced version of VI. Vim is the main editor on the Linux platform. Basically all of the documents are added, modified, saved and need to be used. Therefore, it is necessary to master vim.The installation of Vim is
Vim Introduction:Vim is an upgraded version of VI, VIM is a color display, install vim using yum install-y vim-enhanced.Vim is divided into three modes: General mode, edit mode and command mode.Vim color display and move cursor:Vim is displayed
One, move the cursor # hjkl# 2w forward two words # 3e move forward to the end of the 3rd Word # 0 Move to the beginning of the line # $ The end of the current row # GG file The first line # G file last line # line number +g Specify line # +o jump
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