UNIX linux vi command 1. vi file editing commands have special characteristics, including editing mode and command mode (inconsistent with unix commands, such as ll and who). Therefore, when editing files under Vi commands, it is
There are three status modes in the VI editor1. Command mode2. Input mode3. Last-line modeConversion between three modes Vi. Start and exit of the VI editorgo directly to the editing environment$ VIenter the editing environment and open (new) file$ VI myfile Exit VI Editing
At first I learned how to use linux, but I was not very familiar with vi commands. I transferred an article online.
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 is a brief introduction to its us
Vi (Vim) keyboard chart and its basic commands
Vi (Vim) keyboard chart and its basic commands:
Go to vi
Vi filename open or create a file and place the cursor at the beginning of the first line
represents a number, enter a number after the colon, and then press ENTER to jump to the line, such as enter the number 15, and then enter, will jump to the 15th line of the article. C) Find the character [/keyword]: First press the [/] key, then enter the character you want to look for, if the first keyword is not what you want, you can always press [n] will look back to the keyword you want. [? keyword]: press [?] First Key, and then enter the character you want to look for, if the first keyw
Preface
The Vim VI is a widely used text editor in Unix/Linux. Most machines have different types of VI, we often use different variant software on different machines, among which Vim is relatively easy to use and widely used. Vim is short for VI improved, which indicates better
The Vim VI is a widely used text editor in Unix/Linux. Most machines have different types of VI,We often use different variants of software on different machines. Among them, VIM is relatively easy to use and widely used. Vim is short for VI improved, indicating better VI.This article describes some useful and commonly
7th to of the file with "string2 ".---- Note: S is substitute, % indicates all rows, and G indicates global.---- 5. Edit two files at the same time, copy the text in one file and paste it into another file.---- VI file1 file2---- YY copies the row at the cursor of file 1----: N switch to file 2 (n = NEXT)---- P paste the copied row at the cursor of file 2----: N switch back to file 1---- 6. Replace the path in the file.---- Use the command ": % s #/u
from the file through redirection. However, either method must comply with the following format:Username: PasswordUsername: Password...In addition, the chpasswd on AIX also provides the capability to modify the user flag.How to set the environment variables for each user? Root Java and zhzc Java Path Problem 78921There is a. Profile hidden file in the home directory of each user. You can modify it.Used to build lpar with software IVMBut resource occupation is a management.8008582621-2 Dell fan
The VI is the most powerful text editor in the terminal command line, but it needs only the text editing function, and the integrated application of GCC, make and so on is not needed now, so it is not very difficult to operate, so the habit is good. The Linux distribution is usually not the VI, but the VIM,VI of the e
Executing shell commands in the VIM editor
The 11th Chapter VI and VIM text editors for Linux commands, editors, and shell programming, this chapter will briefly describe how to edit text using the VI and VIM editors. This section describes the execution of Shell
content in register K to the desired position. 7. Avoid duplication
Amazing. Command
In VI, input. (decimal point) will repeat the previous command you entered. For example, if your last command is "DW" (delete a word), VI will delete another word. 8. Use numbers
Using numbers is also a powerful and time-saving feature of vim. You can use a number before many Vim co
ViThe vi editor has three modes: Command mode, input mode, and last line mode. It is very important to master these three modes:Command mode: After vi is started, the command mode is entered by default. From this mode, you can switch to the other two modes by using commands, in any mode, you can press the [Esc] key to
PrefaceIn embedded Linux development, the need to modify the configuration file, and so on, must use VI, so familiar with the VI of some basic operations, to help improve work efficiency.One, ModeThere are 3 modes of the VI Editor:Command mode、Input Mode、last-line mode。 It is important to master these three models:Command mode:
Differences between the vi and nano commands during Ubuntu text editing (nano is recommended)
Vi is a very common full-screen file editor in the Unix world. It can be said that almost any Unix machine will provide this software, just like Windows notepad.
Type vi/etc/hosts
implemented in this mode.
1. Use vi to enter the General Mode
[Root @ linux] # vi test.txt
Enter "vi + file name" to enter the General vi Mode.
2. Press I to enter the editing mode.
In edit mode, INSERT appears at the bottom left of the screen.
3. Press ESC to return to normal mode.
Press the [ESC] key and you will im
I have read the vim program editor chapter in "laruence's Linux private House dish" and made the following records on common vi operation commands for reference. I. The third mode of Vi is basically divided into three modes: "General mode" and "Edit mode" without "command column command mode 』. These three...
I have re
I have read the "vim program editor" chapter in "laruence's Linux private house dish" and made the following records on common vi operation commands for reference.
I. III MODE OF Vi
Basically, vi is divided into three modes: "General mode" and "edit mode" instead of "command
line mode: In normal mode, enter ":" or ?" You can move the cursor to the bottom row. In this mode, you can search for data, in addition, operations such as reading, saving disks, deleting a large number of characters, leaving vi, and displaying row numbers are all implemented in this mode.
1,Use vi to enter normal mode
[Root @ linux] # vi test.txt
Enter "
Just started to learn to use Linux, the VI command is not very familiar with the online transfer of an article.The 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 inst
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.