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
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
option is not really necessary, the editor will set its terminal in a way that it feels appropriate;
viminit: Specifies the command to be executed when Vim starts. Multiple commands are defined by a vertical line between commands,
exinit: Same as Viminit;
vim: The system directory path containing the standard VIM installation system i
The bottom editor used by the VI editor is the ex line editor, and you can assume that the VI editor is the visual mode of the ex line editor. Ex can give you more mobile, more powerful
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
modePress Esc to enter the command line mode and the system default mode.In input mode, you can press o I a to exit and enter the last line and command line mode.You can press ctrl + to exit the editor or save the exit document.Q! [Force exit and do not save] q [exit and do not save] wq [You can add a new one after exiting and saving !]There are a lot of commands in input mode and command line mode. If you
CentOS learning notes-vi program editor, centos learning notes-viVi program editor
In Linux, you often need to modify some configuration files. In this case, you need an editor. Almost all Linux versions provide the vi editor.File Content Check cat command
What should we do
(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. Here we just briefly introduce its usage and
session, you can also open new files at any time using the ": e command. However, before opening a new file, you must use the ": w" command to save the current file. Otherwise, vi will not allow you to use the ": e" or ": n" command to switch files, unless an exclamation mark is added after these commands, the vi restrictions are forcibly ignored. If you simply
, you can also open new files at any time using the ": e command. However, before opening a new file, you must use the ": w" command to save the current file. Otherwise, vi will not allow you to use the ": e" or ": n" command to switch files, unless an exclamation mark is added after these commands, the vi restrictions are forcibly ignored. If you simply use ": e
the beginning of an edit reply, you can also open a new file at any time through the ": E command". However, before opening a new file, you must use the ": W" command to save the current file, or VI will not let you use the ": E" or ": N" command to switch files , unless you add an exclamation mark after these commands, forcing you to ignore the limitation of VI
VI-powerful full-screen editor
VI Introduction
Text editing is probably the most frequent operation in the system.There is a standard and powerful Editor, namely visual edtior ).
For Linux beginners, VI may be extremely unfriendly.Good-all operations should be controlled by
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
Linux-vi Editor 3: linuxvi Editor
1. open the file> Vi file // This mode is the command mode
2. Tail row operation>: Q // This mode is "tail mode">: W // Save the modified document>: Wq // save and exit>: Q! // Force exit without saving the changes>:/Content // find the specified content. "n" searches for the next one,
Vi usage and Common commands, vi Use common commands
Keywords: vi usage and Common commands1. Use of the vi Editor
Some functions of the editing appliance:1) open a file, create a file
", in the Insert mode, we can use the same as the Windows operation method to input text, edit and so on, However, copying and so on non-editing operations, in the Insert mode can not be completed, and need to switch to the corresponding mode with the corresponding command to complete.In this case, the important VI model is explained first.★vi Mode (Command mode, insert mode, ex mode)1) Command mode:When we
modify the program source code.
1 Basic use of the vi editor
The vi editor is a standard editor in Linux. Although many commands are complex and most of the input functions are completed by the keyboard, if we are familiar with
VI is one of the most widely used text editors in Unix-like operating systems. This tool is provided by default for both UNIX, Solaris, and Linux. As long as you are familiar with Vi, you can freely edit text on any UNIX operating system platform. There are many materials on the basic usage of vi. The purpose of this a
enters the VI editor, it first enters normal mode. In normal mode, entering any character from the keyboard is interpreted as a command. There is no prompt in normal mode, which executes immediately when the command is entered, does not require a carriage return, and the characters entered are not displayed on the screen.In normal mode, you can enter commands to
to Use the VI Editor
3.1 How to call VI;
[Root @ localhost ~] # Vi filename
3 command modes of 3.2 vi
Command mode, used to input commands;
Insert mode, used to insert text;
Visual mode: used to highlight the video and select the
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.