string from the first row to the last row, and replace the string with word2. A prompt is displayed before replacement to check whether the conform needs to be replaced (commonly used)
Normal Mode: delete, copy, and paste X, X
In a line of text, X is to delete a character backward (equivalent to a [del] button), and X is to delete a character forward (equivalent to [backspace], that is, the Return key) (commonly used)
NX
NIs a number and is deleted backward.
NCharacters. For example, to delet
is located athttps://github.com/gitlabhq/gitlabhq/blob/master /licenseredis is distributed under the terms of the three clause BSD License,wich are located at Http://redis.io/topics/lic Enseapache Web Server is distributed under the Apache License v2.0, whichis located atHttp://www.apache.org/licenses/LICENSE-2.0PostgreSQL is distributed under the GNU general pu
1) Go to VI
In the system prompts (such as $, #), Type VI
(2) Two modes
As mentioned above, there are two modes in VI: Command mode and input mode. In command mode, keys entered are processed as commands. For example, if a is input, VI inserts a character at the current position. In the input mode, VI treats the Input key as the inserted character. To switch from the command mode to the input mode, you only need to enter the corresponding Input commands (such as A and A). to switch from the inp
Three command-line mode operation1. Enter insert modePress "I": Enter the file starting at the cursor's current position.Press "I": Insert at the beginning of the line where the cursor is located.Press "a": Enter text from the next position where the cursor is currently located.Press "A": Insert at the end of the line where the cursor is located.Press "O": Insert a row belowPress "O": Insert a row above.Press "s": delete one character after the cursor and enter insert mode.Press "S": Delete the
the article.Press "$": Moves to the end of the line where the cursor is located.Press "^": Moves to the beginning of the line where the cursor is locatedPress "w": Cursor jumps to the beginning of the next wordPress "e": Cursor jumps to the end of the next wordPress "b": Cursor back to the beginning of the last wordPress #l: The cursor moves to the first # position of the line, such as: 5l,56l.4). Delete text"x": Each time you press the cursor, delete the "after" character at the position where
command mode, you must
Enter the ESC key in input mode. If you do not know the current mode, you can press [ESC] several times. If the system generates a beep
The command is in the command mode.
Pay: Instructions for entering the input mode in command mode:
Add (append)
A: add data from the end of the cursor. The data after the cursor is moved to the backend with the new data.
A: add data at the bottom of the column where the cursor is located.
Inser
mode, you only need to enter the corresponding Input commands (such as A and A). to switch from the input mode to the command mode, you need to enter the ESC key in the input mode, if you do not know the current mode, you can press [ESC] several more times. If the system beeps, it indicates that it is in the command mode.
Appendix: commands with command mode entering input mode:
Add (append)
A: add data from the end of the cursor. The data after the cursor is moved to the backend with
entering the input mode in command mode:
Add (append)
A: add data from the end of the cursor. The data after the cursor is moved to the backend with the new data.
A: add data at the bottom of the column where the cursor is located.
Insert)
I: insert data from the front of the cursor. The data after the cursor moves to the back as the new data is added.
I: insert data starting from the first non-blank character in the column where the cursor is
the text.
D) Exit VI and save the file
Under "command mode", click ":" colon to enter "last line mode". For example:
: W filename (enter "w filename" to save the article with the specified filename)
: WQ (enter "WQ" to save the disk and exit VI)
: Q! (Enter Q !, Force exit VI without saving the disk)
3. Command mode function key1). insert mode
Press "I" to switch to the insert mode "insert mode". Press "I" to enter the insert mode. The input file starts from the current position of the cursor;
its ownUnix system, and Vi's method of operation will be somewhat out of the way. Of course, we can use the PC's keyboardThe operation of the Ming VI, but still have to mention this problem.Delete and modifyWhat is editing? In this case, we consider the addition and deletion of the text, even the moving and re-System and so on. Here first introduce VI how to do delete and modify. (Note: In the original concept of VI, the input andThe editor is two things. The edit is operated in instruction mod
There is a school where men and women are located. A girl forgot to bring paper to the toilet. At this time, there were several toilet papers coming next door. The girl was so pale that she whispered: Who? A male replied: progressive.
There is a school where men and women are located. A girl forgot to bring paper to the toilet. At this time, there were several sanitary napkins next door. The girl wa
Decomposition of startup items1) "start" folder-the most common folder for self-starting programs.It is located in the "Documents and Settings --> User --> [start] menu --> program" directory of the system partition. At this time, the user refers to the login user name.
2) "all users" in the self-starting Program Folder-another common self-starting Program folder.It is located in the "Documents and Settings
page toward the back.Press "ctrl"+"d": The screen moves the half page toward the front."0" by number: Moves to the beginning of the article.Press "g": Move to the end of the article.Press "$": Moves to the end of the line where the cursor is located.Press "^": Moves to the beginning of the line where the cursor is locatedPress "w": Cursor jumps to the beginning of the next wordPress "e": Cursor jumps to the end of the next wordPress "b": Cursor back to the beginning of the last wordPress #l: Th
the right;
When editing a file, you can add numbers before the J, K, L, and H keys, such as 3j, to move three lines down.
3.5 insert mode (text insertion)
I insert before the cursor;
A is inserted after the cursor;
I insert at the beginning of the row where the cursor is located;
A is inserted at the end of the row where the cursor is located;
O insert a row above the row where the cursor is
-insensitive, you must first enter: Set ignorecase to find it, then enter n to find the next match, and enter n to search for it.*(#)When the cursor stays on a word, enter this command to search for the next (top) word that matches the word. Then enter n to find the next match, and enter n to search for G.* (G#)This command is similar to the previous command, except that it does not fully match the word where the cursor is located, but matches all str
-classpath
Usage
No optionsSuppose there is a file named Test.java under the D:\sources\ path.For example: Javac D:\sources\Test.java, you can enter the command in any directory on the command line, compiled, the system will generate Test.class files by default under D:\sources\ path- D (before you use this option, create a directory on your computer)Suppose there is a file named Test.java under the D:\sources\ path.For example: javac-d E:\myclasses D:\sources\Test.java,
signal capture and processing method;
Loading builtins;
Use Goroutine to load daemon objects and run them;
Print Docker version and driver information;
Creation and operation of the job "Serveapi".
The above steps are analyzed in more detail below.5.0 Configuration InitializationBefore Maindaemon () runs, the config configuration information required for Docker daemon has been initialized. Implemented as follows, located in./dock
nth line of the file.--> Gg: the first line to move to this file is equivalent to 1G.B) search and replace-->/Word: query a string named word from the cursor down. Next n, last #-->: N1, n2s/word1/word2/g: n1 and n2 are numbers. Search for the string word1 between line n1 and line n2,And replace the string with word2.-->: 1, $ s/word1/word2/g: searches for the word1 string from the first row to the last row, and replaces the string with word2.-->: 1, $ s/word1/word2/gc: searches for the word1 s
hierarchy of tree graph)First floor
OHASD logs are located at: $Grid _home/log/
The second layer: (OHASD agent)
Cssdagent logs are located at: $Grid _home/log/
Cssdmonitor logs are located at: $Grid _home/log/
Orarootagent logs are located at: $Grid _home/log/
Oraagent logs are
three modes: inserting mode and command mode.Mode) and ex mode (ex mode ). In the input mode, you can enter text, while in the command mode, you can execute commands such as file editing and archiving.To execute otherFunctions, such as searching, replacing text, and multi-file operations. To enter Vi, you can directly Type VI at the shell prompt[File name]. If the file does not exist in the current directory, VI creates it.There are several ways to enter the input mode:
Add (append)A:Add conten
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.