Day5 python full stack s3 the last Class review
S3 Python full stack day5 file merge and file archive
S3 Python full stack day5 file archive with two compression methods
Python full stack S3 day5 Vim Editor
Python full stack S3 day5
5.1vim IntroductionVim is an upgraded version of VI with a color display that installs the package firstYum install-y vim-enhancedVim is divided into three modes: General mode, edit mode, and command mode.
5.2vim color display and move
1. Copy the/etc/profile to/tmp/directory and use the Find replacement command to remove the white space characters from the beginning of the/tmp/profile file %s/^[[:space:]]*\([^[:space:]]*\)/\1/g2. Copy the/etc/rc.d/init.d/functions file to
One: Vim Undo and Redo U Undo Recent Changes#u撤销之前多次更改U undo cursor falls on this line after all the changes of this rowPress Ctrl-r to redo the final undo change. Repeat previous actionN. Repeat the previous action n timesExit mode e! Direct
Vim brace matching is highlighted in the vim7.4 version, which is turned on by default. But the default parentheses matchThe highlight color is light blue, in the light of the blind at the same time, seriously affect our writing code, the most
Vi/vim Key DescriptionIn addition to the simple example above I, ESC,: Wq, in fact, Vim has a lot of keys can be used.Part I: General mode available cursor movement, copy and paste, search and replace, etc.
How to move the cursor
In the Linux family, the Vim editor is the system's own text editor, which is powerful and self-contained.I have small white, just contact with Linux, to modify a text file, it is not possible to operate like windows, and, worse, into the VI editor,
Advanced some of the editor, will contain the macro function, Vim is certainly not missing, the use of macros in Vim is very convenient:: QX starts recording macro and registers the result in register XQ Exit Record mode@x playing macro commands
You can undo one operation by pressing u in VIU undo the last step operationCtrl+r Redo the previous undo operationVim is the most famous text/code Editor on Linux, and the GVim of the Vi editor of the early years, while the Windows edition of the
In Linux, the Vim editor is the system's own text editor, which is powerful. This vim (VI) is very simple. Note: The Linux command should be lowercase oh!Vim Editor, you can create a new file can also modify the file, the command is:
VI VimLinux has multiple editors, but different distribution, VI is basically supported on every distribution.Vim is an enhanced version of VI. Vim has the ability to edit the program, can be active in font color to identify the correctness of the
Unit 41. Managing input and outputIn a Linux system, the correct output number is 1, the error output number is 2Perform "student" with ordinary users in the system650) this.width=650; "Src="
Installation Instructions: http://www.cnblogs.com/zhcncn/p/4042926.htmlOfficial Installation Instructions: http://vimcdoc.sourceforge.net/The official has not been updated for a long time, after the successful installation, the Help document content
How to move the cursor
h or LEFT ARROW key (←)
The cursor moves one character to the left
J or DOWN ARROW key (↓)
Move the cursor down one character
K or Up ARROW key (↑)
Move the cursor up
Vi/vim Text EditorGeneral mode:DD: Delete cursor when moving forwardDND: Delete n rowsU: Undo Step Up actionYY: Copy when moving forwardP: Pastex: Delete a letterDW: Delete a wordYW: Copy a wordshift+^: Moving to the Wardrobeshift+$: Move to Row
The philosophy of the Linux system is all documents, we usually need to fill in the content of the file is often used in the text editor before we learned the Nano editor, but the Nano editor features a single, not suitable for complex operations,
Vim/vi is a very common text editor under Unix/linux, most of the machines have VI, on different machines commonly used in different variants of software which VIM is more useful also used more widely vim is the abbreviation of VI improved,
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