When using the GIT command-line tool, you often accidentally enter the Vim interface, for example, git commit does not fill in any descriptive information. For users who are accustomed to the Windows visual interface, they may suddenly feel
Insert Mode:iSave:: WSave and Quit:: WqMove cursor:h (left) J (next line) K (last row) L (right)Open a new Line:o (below-line) O (above-line)Delete:dCopy:yPaste:pUndo:uLine-connection:jFind and Replace::%s/f/r/g f:texts to find r:texts to replace
General mode: Open a file with vim directly into the general mode, in this mode, you can use the left and right buttons to move the cursor, you can delete characters or delete the positive row, you can copy, paste text data.Edit mode: In general
#正常模式---------------------------------------DD DeleteDigital +DD multi-line deletionYY copyDigital +YY multi-line replicationP Paste/String search for the string (from top down)String search for the string (from bottom to top)N Show Next SearchN
Vim is a powerful text editor under the Linux system. Trust the program that is familiar with the Linux development environment apes and OPS are playing well.Here is a brief introduction of the commonly used command, I hope to help youMACROS macro
A text editor under the command line of the Linux systemThree different modesGeneral mode: Opens the default mode for a documentEdit modecan be edited to enter edit mode from normal mode by pressing I-O-R lettersPress ESC to exit edit modeCommand
2.1 Multi-file editing 2.1.1 using Vim to edit multiple filesThere are two forms of editing multiple files, one being a parameter that is used before entering Vim is multiple files. Another is to enter vim and then edit the other files.Create two
: Set fileencodingYou can display the file encoding format. If you just want to see other encoded files or if you want to solve the problem of viewing files garbled with Vim, add the following to the ~/.VIMRC file:Set Encoding=utf-8
When you install Vim through the source, you are prompted for missing terminal libaryAfter installing ncurses, this problem still occurs.After finding the data found. Run the following command to install Vim as normalenv
In the Linux environment Editor has VI, VIM, gedit and so on. After entering these editors, to make it easier for us to need the editor to display the current line number, the editor will not display the line number by default. There are two ways we
Text processing in Windows has Notepad, so how do you do text processing on Linux systems? That's using VIM.Understanding VIMPractice: Use VIM to create a new text file in the current directory with the command testvim.txtVim mode1, insert modeIn
ObjectiveThis article summarizes the actual development of their own regular use of commands, not regularly updated to facilitate their own and other people to consult.If there are other use techniques to improve efficiency. Welcome message.This
Find
Replace
In normal mode1. If you want to replace only one letter, enter FA to find the next letter A, enter r and type the letter you want to replace a.2. If you want to go directly to edit a lot of letters, enter R, enter the REPLACE State,
Section Reference http://www.cnblogs.com/yangjig/p/6014198.htmlH Cursor moves leftJ Cursor moves down one lineK Move the cursor up one lineL MOVE the cursor right$ cursor to end of line^ cursor to the beginning of the first non-empty letterDW Delete
Reference: Https://github.com/yangyangwithgnu/use_vim_as_ideHttps://github.com/Valloric/YouCompleteMeThere are several issues with the installation of the full install step in Https://github.com/Valloric/YouCompleteMe:(1) in executingCmake-g "Unix
1. Empty command Line input2. Delete the most recently entered word3. paste the word at the cursor to the command line4. "Paste the contents of the Nameless register into the command line5. a Paste the contents of register a to the command line6.
G jump to end of fileGG jumps to the first line of the fileNumber 0 jumps to the beginning of the current line$ jumps to the end of the current lineNgg N is a number that moves to the nth row of a file, such as a 11gg row that can be moved to line 1
One, Vim search1. Forward lookup/reverse lookup?2. Exit Find 3. Jump to the next match N, jump to the previous match n4./ jumps to the next match in the same mode,? jumps to the previous match in the same mode5. Browse previous Find record, view
Vim Tips Summary-Find1. Find commands1.1 Performing a searchIn normal mode, the lookup prompt is called, and if the VIM scan to the end of the document still does not find the target, it will prompt "search hit BOTTOM, continuing at TOP". This means
Settings for the. VIMRC$HOME General settings for/.VIMRC, such as the following.Set nocompatible "" Not Compatible with VI "" Encodings and Fontsset Encoding=utf-8set Fileencoding=utf-8set fileencodings =ucs-bom,gb18030,gbk,gb2312,cp936set
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