background :Because of the irresistible reason, the learning environment was turned into an Ubuntu machine on a previous CentOS machine. Therefore, it is necessary to reconfigure the VIM environment on the new Ubuntu machine. It's already the third
VIM Tutor makes you know enough commands-easily use VIM. If you wanna get full version of VIM Tutor, execute vimtutor in the shell. Lesson 1
The cursor is moved using either the arrow keys or the HJKL keys:h (left), J (off), K (UP), L
As an old and enduring editor,Vim has its own strengths. Many people think that Vim's learning curve is too steep, in order to be able to use VIM, have to memorize a large number of commands. If you are new to Vim, just start to face a vast amount
Vi/vim Basic Use MethodThe VI Editor is the standard editor for all UNIX and Linux systems, and its power is not inferior to any of the latest text editors, here is simply a brief introduction to its usage and a small number of instructions. Because
Online comparison of a good article: HTTP://COOLSHELL.CN/ARTICLES/1679.HTMLHTTP://COOLSHELL.CN/ARTICLES/11312.HTML1, VIM installation Nerdtree plug-in: First download, Official website: http://www.vim.org/scripts/script.php?script_id=1658 after
Command-line command- This command to repeat the previous operation. He actually did not find the effect of the. command. The difference is that he can put the. effect on multiple lines in your visual mode.For example, if you want to add a number to
BackgroundWhen dealing with some oversized files with the vim command, you sometimes encounter a deadlock and have to force the exit. However, when you use the VIM command again to access the file, a "e325:attention" prompt appears. If you do not
Vim is divided into command mode and edit mode. Press the ESC key to exit edit mode. all the following ' # ' numbers represent numbers. One, move the cursor in command mode#h the left #j #k上 #l right0/^/home move to beginning $/end to end of lineW
Vim Advantages and application scenariosThe advantages of Vim pure text editing and the perfect fusion of Linux provide the command line . Only assume that the SSH to the server to operate, then this situation can only use VIM. Vim is also one of
1. Summary of the use of the text Editing tool vim650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/72/A4/wKiom1Xpq2-CsSpzAAXcWbe4sX4262.jpg "title=" Vim usage Diagram "alt=" Wkiom1xpq2-csspzaaxcwbe4sx4262.jpg "/>2. File Find command
The shortcut keys I use Command mode : Wq or ZZ Save file and exit : Q Do not save file exit : Set Nu Sets line number :/Down Find :? Look up :%s/old/new/g replaces all old characters in text : N1,n2 s/s1/s2/g The S1 character from the N1 to the N2
1. Location of configuration FilesUnder directory/etc/, there is a file named VIMRC, which is a public vim configuration file in the system and is valid for all users. In each user's home directory, you can create a private configuration file, named:
Vim EditorText editor, word processorNano, SEDVi:visual Interface (Visual Interface)Vim:vi improvedMode editor, full screen editorOne: Open file# Vim/path/to/somefile
Vim +#/path/to/somefile Open/path/to/somefile and locate the file # line
Command mode, enter the command:: Set number Displays line numbers: Set Cindent is indented in C language syntax: Set autoindent adds the same indentation as the current row for the new row: Some improvements to set smartcindent autoindentGGVG
s) The movement of the cursorH Cursor moves to the beginning of the top line of the screenM Cursor moves to the beginning of the middle line of the screenL Cursor moves to the end of the last line of the screen0 cursor moves to the beginning of the
Notes on playing vim-(iii) In the blink of an eye, May will slip away from the fingers, do not give a little time to daydream, I want to hurry to grasp the tail of May, in the blog add a pen. Then let's go to vim for a while. Use Vim to draw a full
1, Vim ~/.VIMRC Enter the configuration fileIf you don't know where the VIMRC file is, you can use the: Scriptnames to viewSet Nu #行号Set tabstop=4 #一个tab为4个空格长度Set AI #设置自动缩进Syntax on #高亮2. BasicSPACEBAR to move one cell to the rightX Delete the
About MapMap is a map command that maps frequently used long commands to a new function key. Map is a powerful reason for vim, you can customize a variety of shortcut keys, used naturally handy.Types of mappingsThere are five kinds of mappings
VI and VIM are both text editor, the difference is that Vim is the upgrade version of VI, it is not only compatible with all VI directives, but also some new features in it.Vim/vi is a powerful full-screen text editor, which is the most commonly
Major premise: Install git: sudo apt-get install Git-core , because many of the following are available on GitHub.In addition, unreasonable point of view (concrete principle such as the small have not seen >.
1. Terminal using solarized 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