Command mode (ESC)K Move up one lineJ Move down one lineH move one line to the leftL Move Right One line6j Move Down 6 rows5k Move up 5 rows0 Place the cursor at the beginning of a row$ put a cursor at the end of a lineW move a cursor to the next wordb move the cursor to the previous wordCTRL + B Roll back one screenCTRL + F roll forward one screen: x moves the cursor to the X row: 3 Moves the cursor on the third row: Set NU Displays line number/what/What to look for (remember two times ESC afte
.4, if you delete a character, then use the "delete" key, in the edit mode or exit edit mode can be deleted.5, if the editor has completed the change how to save the exit? Just exit edit mode and press ": Wq" to enter. : W saves the file but does not exit vi:w. File to save the modification to file without exiting vi:w! Force save, do not eject Vi:wq save file and exit vi:wq! Force save file and exit Viq: Do not save file, exit vi:q! Do not save the
can not modify the editor.Family.51cto.blog.comEdulWww.baid$u.comwww.ywtou.top$~~~ (tilde fills an unfilled line)~~"Port.txt" 4L, 57CNext: Is the last line mode, the last line mode is the input colon can enter the last line mode as shown belowFamily.51cto.blog.comEdulWww.baid$u.comwww.ywtou.top$~~~~~~: Shown so that in the last line mode we can execute some exit save commandsvi Editor text save and Exit commandsSave and Exit command descriptionW Save
to N2 are replaced with P2: g/p1/s//p2/g: Replace all P1 in the file with P27) Option settingsAll: List all option settingsTerm: Set terminal typeIgnorance: ignoring case in searchList: Display tab stops (CTRL+I) and end-of-line flags ($)Number: Show line numbersReport: Displays the number modified by the line-oriented commandTerse: Displays a short warning messageWarn: Displays no write message if the current file is not saved when you go to another fileNomagic: Allows the use of special chara
This article is your own study notes, welcome reprint, but please specify the source: http://blog.csdn.net/jesson20121020The most powerful text editor under Linux is Vi/vim, and its commands, if used flexibly, are more efficient than other text editors when writing programs or editing text.Vi/vim There are no menus, only comm
when you save a file:* Written for half a day, found no write permission. You can use: w filename to write the current result to a new file (because a new file is created in the directory at this time, so you need to write the file to a directory that has write permissions for you)* Try to write the file, but found that the file system is full. This workaround consists of a number of files that can be written to the file system with the remaining space and can be entered directly on the other s
adding an exclamation point, you can make vi ignore this ban and directly discard the current editing result to return to the file content in the last storage.
Problems Occurred When saving the file:
* After writing for half a day, no write permission is found. You can use w filename to write the current result to a new file (because a new file is created in the directory, therefore, you need to write the file to a directory with write permission for
2011-06-14 wcdj
(1) ex command(2) Use ex for editing(1) line address(2) define the row range(3) line address character(4) Search Mode(5) Redefine the location of the current row(6) Global Search(7) combined ex command(3) Saving and exiting files(1) Rename the buffer(2) Save some files(3) add to an existing file(4) copy the file to another file(5) Editing Multiple files(1) Call VI to open multiple files(2) Use the parameter list(3) call a new file(4) s
the command name:There are two versions of Vim: graphical and text, and UNIX users can get the desired behavior simply by using the following commands:
Vim: Start the text version of Vim;
Gvim: Start the graphical version of Vim. Typically, Gvim and Vim are two different executable programs. Gvim needs to open all GUI options when compiling vim. You can also use "vim-g" to start Gvim, in
VI is a screen editor provided by all Unix systems, and it provides a Windows device through which you can edit files. Of course, the UNIX system slightly know people, more or less think VI super difficult to use, but VI is the mo
label stack function of vim will be further studied in subsequent articles.
Improved editing tools:All similar products provide the ability to edit the ex command line, undo it for unlimited times, support row and eight-digit data of any length, and perform incremental search, scroll the screen from left to right to replace other features such as long lines, visual mode, and mode indicator.
Programming assistance:
Vi is an
(Transfer) Action 9: basic usage of the Vi Editor !, Literacy vi
The vi editor is a standard editor for all Unix and Linux systems. It is not inferior to any of the latest text editors.
Ubuntu tool: vi editor and ubuntuvi EditorVi IntroductionVi is short for "Visual interface", and its position on Linux is as if the Edit Program is on DOS. It can perform output, delete, search, replace, block operations, and many other text operations, and users can customize it according to their own needs, which is not available in other editing programs.Vi is not a typographical program. Unlike Word or
arbitrary commands. The extended properties are placed in a delimited ";" "After the delimiter. The properties are separated by a tab character, each property consists of two sub-fields separated by colons, the first subfield is the keyword that describes the property, the default is kind (which can be omitted at this time), and the second is the actual value. the extended ctags keyword can be referenced in the V
This chapter describes linux vi commands in detail. The text editor is the most commonly used tool in all computer systems. When using a computer, users often need to create their own files. Whether it is a common text file, a data file, or a source program file, these jobs cannot be separated from the linux vi command
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.