Vimm (vimsual) is a full-screen editor used in Linux/Unix OS.
Vimm is divided into two states: command status and edit status. In command status, the entered character system performs command processing. For example, Q indicates that the system exits, the editing status is used to edit text materials. When you enter vim, it first enters the command status. In the command status, press "I" (insert) or "A" (ADD) to enter the editing status. In the editing status, Press ESC to enter the command sta
beginning of LineEnd cursor to end of linePage up and page downDelect deletes the character at the cursor positionDelete operation (used in command mode)X delete a single character at the cursorDd deletes the row where the cursor is located.DW deletes all characters from the current character to the end of a word including Spaces# X for example, 3x Delete the three characters to the right of the cursor# Dd For example, 3DD deletes three lines of text
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 located;
O insert a row under the row where the cursor is located;
S. delete a character after the curso
I have been using VI for a short time. I didn't intentionally learn VI command usage, but I got familiar with it when I was using it. Although it was slow, I remember it quite well, write down the commands I have mastered.
1. delete operation
X delete a single character at the cursor
Dd deletes the row where the cursor is located.DW deletes all characters from the current character to the end of a word including Spaces# X for example, 3x Delete the three characters to the right of the cursor# D
Analysis Function over and Window Function
I. analysis function over
Oracle provides analysis functions starting from 8.1.6. analysis functions are used to calculate a group-based aggregate value. What is different from aggregation functions?
Multiple rows are returned for each group, while the aggregate function returns only one row for each group.
The following examples illustrate the application.
1: Count the turnover of a store. Date sale
1 20
2 15
3 14
4 18
5 30
Rule: daily statistics: the
to a common text editor;A or enter a. The difference is that a inserts additional text after the character, and I inserts it before the character;Insert at the beginning of line I;Insert at the end of line.O create a blank line under the cursorO create a blank line on the cursorModify and delete textCommand C, x, D, DCW deletes the current position to the end of the word in this position, and inserts text into it. CW deletes English words, which are unavailable in Chinese.C $ or C: Delete the c
the screen up;CTRL + F move one screen down;Move up arrow up;The downward arrow moves down;Move to the left arrow;The right arrow moves to 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.(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
words.
Dd deletes a row
# Dd deletes multiple rows and # represents numbers. For example, 3DD deletes the cursor row and the cursor's next two rows.
D $ Delete the content from the cursor to the end of the line
J. Clear the space between the row where the cursor is located and the previous line, and link the cursor row with the previous line.
Unedit
U undo the modification or deletion operation
: U
Search
/Key key and search keyword, support regula
is 43 to 47, but s is only 45 in this rangeASDF 3 55 55CFE 2 743DD 3 78 158 -- 78 in the range of 76 to 80 has 158, 80, and the sum is.FDA 1 80 158GDS 2 92FFD 1 95 190DSS 1 95 190Ddd 3 99 198
GF 399 198
Over (order by salary rows between 5 preceding and 5 following): The window range is 5 rows before and after the current row.
Example:
-- Sum (s) over (order by S rows between 2 preceding and 2 following) indicates the range between the upper and lower rows.Select name, class, S, sum (s) over
)
Insert a new row before the current row
Yy
Copy current row
Cw
Delete the cursor to the end of the word and enter the insert mode.
P (lower case)
Paste the post after the cursor
Move cursor
P (uppercase)
Paste the post before the cursor
0 (number zero)
To the line Header
Undo/Redo/do multiple times
^
To the position of the first non-null character in the row
U
Undo
$
To the end of a row
3dd
Delete the three rows starting from the current row
Yy
Copy current row
3yy
Copy the three rows starting from the current row
P
Paste to the next line of the current cursor
P
Paste to the previous line of the current cursor
CTRL + r
Redo the previous operation
Common buttons for "command line mode:
Common buttons in "command line mode"
Button description
Common vim commands, vim
Vimm (vimsual) is a full-screen editor used in Linux/unix OS.
Vimm is divided into two states: command status and edit status. In command status, the entered character system performs command processing. For example, q indicates that the system exits, the editing status is used to edit text materials. When you enter vim, it first enters the command status. In the command status, press "I" (insert) or "a" (ADD) to enter the editing status. In the editing status, Press ESC
Light VIM (3): delete this section to see how to delete it. The DELETE command is relatively simple, however, to delete www.2cto.com more efficiently, you need to use the various mobile command characters described in section 1 to delete x to delete the character at the cursor position X to delete the character before the cursor there is nothing to note about here, however, it should be noted that, in general cases, a newbie will press x in a rush to delete a large piece of text. If it is used f
Deletion
Rc uses c to replace the current character pointed to by the cursor
Nrc replaces the first n characters pointed to by the cursor with c (for example, 5rc: replaces the first 5 Characters pointed to by the cursor with c)
X deletes a character behind the cursor position.
Nx deletes n characters after the cursor position (for example, 3x: 3 characters after the cursor position)
X in uppercase. delete a character before the cursor position.
NX Delete n characters before the cursor position
FC Portugal
Portugal
Luis Paulo Reis
University of Porto/University of Aveiro
Robogulf
UAE
Moeen alinaghian
Ajman University
Bold hearts
UK
Daniel polani
University of Hertfordshire
Robogunners
UK
Mosalam Ebrahimi
City University, London
UT Austin Villa
USA
Peter Stone
UT Austin
3DD
Robolog
Ger
> the Li>There are sequence table entries 3Li> * ol> $ ul>Panax Notoginseng Li>Unordered list Item 1Li> - Li>Unordered list Item 2Li> the Li>Unordered list Item 3Li> + ul> A DL> the DT>Defining list HeadingsDT> + DD>Defining list Items 1DD> - DD>Defining list Items 2DD> $ DD>Defining list Items 3DD> $ DL> - Body>
:命令模式下 dd 删除一行 (光标放到行首) 3dd 删除三行 (光标放到三行的第一行行首)行复制:命令模式下 yy 复制一行 (光标放到行首) 3yy fuzhi 三行 (光标放到三行的第一行的行首)粘贴:p (从当前光标所在位置的下一行开始粘贴 )After five articles about Linux, for simple operation is enough, but for the Linux application development behind us is a bit difficult, my method is, for a technology, first learn basic use, wait until further use of the time to further study, The advantage of the first: avoid the wrong end of the de
contents of the cursor at the beginning of the line
Dw,de,db, ...
#COMMAND: Delete #, for example: 3DW
DD: Delete an entire row of the cursor row, also support #dd, for example: 3DD means delete 3 rows
The deleted content is saved in the buffer, and the last deletion can be used to paste
Paste command
P: The contents of the buffer are pasted at the bottom o
copies the current cursor position to the end of the line: y$ Copy the current cursor position to the beginning of the row: y^ copythreeLine: 3yy, that is, from the current cursor + the next two lines. Cut text: You can press Y to copy after selecting the text with V, if you press D to cut, then press p to paste.CutLine: DD cuts the position of the current line cursor to the end of the line: d$ cuts the position of the current line cursor to the beginning of the row: d^ front cutthreeLine:
section moves very clearly.Note that e B ignores punctuation, such as Don ' t, which they will delete as three words, Don, ' and T.And the uppercase E B will notRow DeleteDD Delete a whole line d d$ Delete the cursor position to the end of the bank D0 Delete the cursor position to the beginning of the bankThese three kinds of usage are best understoodI said from the beginning that deleting a command requires a move command in order to play more roleYou can take a
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.