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
Children's shoes that often use VIM may notice that in the actual operation, in the insertion mode is very little, more is to view and browse, occasionally modified. Therefore, it is very important to quickly exit from insert mode into normal mode.
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
Vim has three kinds of Visual mode. In Character-wise Visual mode, we can select anything from a single character up to a range of characters within a line or Spanning multiple lines. This was suitable for working at the level of individual words or
When you write a script, you can add copyright information so that the maximum usability of the script is where the individual labor isThe following is the automatic configuration to add copyright information when Vim writes a scriptEdit in the user'
You have to practice it yourself, or you can't remember.Move cursor: h,j,k,l key^KJVThe H key is on the left and moves to the left each time it is pressedThe L key is on the right, each time you press the right moveq! ExitX-Key DeleteDW Key Deleted$
First, IntroductionVim (vi[improved]) editor is an extended version of VI, more powerful than the VI function, is a powerful cross-platform text file editing tools, you can use it to create, modify text files and so on. Vim has three modes of
Now, you don't have to worry about these complicated processes, because we can make use of Vim's shortcut keys to enable us to operate vim as smoothly as possible. Now, let me introduce a few very useful (we know that Vim shortcuts have a lot, not
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
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
In normal mode:The% match parentheses move, move the cursor over the brackets, and press% to move the cursor to the matching brackets./string find the full-text string, press N to move the cursor to the first letter of the next string;? String to
1. Displays the current time, the display format is HH:MM:SS, and is saved to the file Time.txt file.650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/9C/5F/wKiom1lvZbPC311MAABCfFDDzjY186.png-wh_500x0-wm_ 3-wmp_4-s_647382095.png "title="
Multi-line comments and delete multiline comments in Vim-------------------------------------------------------------------------------1. Multi-line Comment:A. Press CTRL + V to enter the column mode;B. At the beginning of the line, select the lines
Vim is a super powerful editor, and of course we can also configure it with a super-strong IDE. There are so many such tutorials online that I don't have to repeat them.We are in the use of unfamiliar commands, unfamiliar with the use of plug-ins
Chapter III, familiar with the Vim editorthree modes : command mode , edit mode , last line modecommon commands for Command mode :Move Cursor W B () {}, G Bottom, GG frontW is a word to move,B is the first word to moveI, I, A, a, O next line edit ,
Transferred from: http://blog.csdn.net/jiaolongdy/article/details/17889787/
Vundle is a git repository-based plug-in management software. Vundle simplifies the installation of plug-ins to resemble the Yum software installation process, as long
Test success, perfect solution.Just change this file _VIMRC in the Vim folder below.Come on, tart. It's very powerful!Set Encoding=utf-8set fileencodings=utf-8,chinese,latin-1if has ("Win32") set Fileencoding=chineseelseset Fileencoding=utf-8endif
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