The Cmd-line mode also has 3 types: the EX command (ex commands), the lookup mode (search patterns), and the filter command (filter commands). The main focus of this paper is the ex command and search patterns. The Filter command temporarily uses less of the scene if there is a more appropriate scenario to add.ObjectiveMastering the syntax and concepts of common operations in Cmd-line modeIntroduction to the Ex commandAt first, there is ed,ed as the father of the ex, the father of the VI, and VI
Ctrl+shift+k
Run macro File
Alt+q
Wrap lines
Ctrl+k, Ctrl+u
Upper case
Ctrl+k, Ctrl+l
Lower case
Ctrl+k, Ctrl+space
Set Mark
Ctrl+k, CTRL + A
Select to mark
Ctrl+k, Ctrl+w
Delete to mark
Ctrl+k, Ctrl+x
Swap with Mark
Ctrl+k, Ctrl+y
Yank
Ctrl+k, Ctrl+k
Run macro Fi
to 26a token. To parse the command output by placing filenameset between parentheses, type: for/F "Usebackq delims=="%i in ('Set`) Do @echo%i This example enumerates the environment variable names in the current environment. Http://www.cnblogs.com/vus520/archive/2013/01/09/2852584.html4. IfThe basic use of this usage is to determine the code for the execution of the previous command to determine the next step .In general, the execution result code of the previous command has only two results ,"
--Comment--
Comment Switch
Ctrl +/
Block Comment Switch
Ctrl + Shift +/
--Text--
Line spacing before insertion
Ctrl + Shift + Enter
Insert after segment
Ctrl + Enter
Delete the front of the word
Ctrl + Delete
Delete the word back part
Ctrl + Backspace
Delete to end of line
Ctrl + K, K
Remove to Wardrobe
Ctrl + K, Backspace
Back and forth
Ctrl
Original: http://vim.wikia.com/wiki/Copy,_cut_and_paste
Reference: http://linuxtoy.org/archives/efficient-editing-with-vim.html
Ever try to cut (or copy) some lines and paste to another place? If you need to count the lines first, then try these to eliminate counting task.
Cut and paste:
Position the cursor where you want to begin cutting.
Press V (or upper case v if you want to cut whole lines ).
Move the cursor to the end of what you want to cut.
Press D.
Move to where yo
ArticleDirectory
Ctrl key bound
Alt key bound
More special key bindings
Bash, which is the default shell in Linux contains a whole lot of key bindings which makes it really easy to use. The most commonly used shortcuts are listed below:
Ctrl key bound
CTRL +-Jump to the start of the line
CTRL + B-Move back a char
CTRL + c-Terminate the command
CTRL + d-Delete from under the cursor
CTRL + E-Jump to the end of the line
CTRL + F-Move forward a char
CTRL + k-Delete to
the cursor position.d^: Delete to the beginning of the line.d$: Delete to the end of the line.DD: (CUT) deletes the line where the cursor is located.DW: Deletes the remainder of the word after a word/cursor.D4W: Delete 4 word.#dd: Deletes the # line starting at the line where the cursor is located.DaB: Deletes the contents of {} and within it.DiB: Delete the contents of {}.N1,N2 d: Removes the content between the n1,n2 rows.4. Find:/: Enter keywords, find not to find, directly press N, search b
his baby! "Message2 = "now I have lost my master. Have you seen him? That is :"Message3 = "xxx"Message4 = "or email him XXX @ xxx"Message5 = "Thank you very much. During the replay, the minor host will thank you again! "
msgbox message1 CHR (13) message2 CHR (13) message3 CHR (13) message4 CHR (13) message5, 266304, title ---------------------------------- I don't know how to compile the vbs script into an EXE file because of Autorun. INF can only run EXE files. Of course, you can u
by index
F2
Next Bookmark
Shift+f2
Prev Bookmark
Ctrl+f2
Flag State Toggle
Ctrl+shift+f2
Clear bookmarks
Alt+f2
Select All bookmarks
Ctrl+shift+k
Run macro File
Alt+q
Wrap lines
Ctrl+k, Ctrl+u
Upper case
Ctrl+k, Ctrl+l
Lower case
Ctrl+k, Ctrl+space
Set Mark
Ctrl+k, CTRL + A
Select to mark
loadmodule php5 ... this line of # (note symbol) is removed.![] (http://images.cnitblog.com/blog2015/589133/201503/231410352395226.png)2: Enter in Terminal:Cd/etc/sudo CP Php.ini.default PHP.iniYou can access PHP content by restarting the server and placing PHP files under a custom site path.Third: MYSQ Installation:MySQL Download: http://dev.mysql.com/downloads/mysql/MySqlWorkbench download: http://dev.mysql.com/downloads/workbench/Install directly after download, all the way by defaultMySQL c
) column of the table components, in Edo has become a reality! Performance! is a big killer of Edo!
Spinelz.Spinelz is a JavaScript library that enables Web developers to create rich Internet applications. Spinelz based on script.aculo.us. The functionality provided is to take advantage of some script.aculo.us Ajax and animation effects to maximize value.June Framework (Demo address)A small JS framework based on the core library, which is the author of Kevin
.#: Finds the same word forward on the current page.5. Copy y (Yank) mainly:YW: Copies the characters from the cursor to the end of the word into the buffer.#yw: Copies the # characters to the buffer.Y: Equivalent to YY, copy the entire line.#yy: Represents the number of lines of text that is copied from the line where the cursor is located.P: Paste. All operations related to Y must be combined with p to paste.]p: Paste to the appropriate indent.N1,N2
the yank and delete row operation commands and one non-row deletion content caching register "--- the 26-letter naming register "a-" z/"A-" Z-"z generated when the vim cache delete operation is not on the line -- four read-only registers completely specified by the user". "%" # ": expression register" = -- use VIM's powerful expression function (never used, never understood) GUI to select register "*" + "~ -- Vim caches the selected text black hole r
The test found that if you directly access static resources such as HTML for a Web project, you cannot accessThe reasons are as follows: When Url-pattern is configured as "/" in Web. XML, it causes static resources in the system to be interceptedHow to resolve:1) Modify Url-pattern 2) for static resource mapping 3) Open Tomcat DefaultservletI tested solutions 2 and 3 and made the following configuration:Xml:SPRINGMVC Core - servlet> Servlet-name>SpringmvcServlet-name> Servlet-class>Or
character at the location of the pointer.#x: Delete the 6 characters after the cursor position.d^: Delete to the beginning of the line.d$: Delete to the end of the line.DD: (CUT) deletes the line where the cursor is located.DW: Deletes the remainder of the word after a word/cursor.D4W: Delete 4 word.#dd: Deletes the # line starting at the line where the cursor is located.DaB: Deletes the contents of {} and within it.DiB: Delete the contents of {}.N1,N2 d: Removes the content between the n1,n2 r
Download Vim and vim
From song4
Vim helps you complete text editing in a almost natural language.
You just need to get familiar with a few simple syntaxes, and then you will sit on the rotating seat and turn around, and feel the wonderful life is back.
Okay, let's get started.
Vim helps you complete text editing in a almost natural language.
You just need to get familiar with a few simple syntaxes, and then you will sit on the rotating seat and turn around, and feel the wonderful life is back.
O
Common Vim commands and usage 1 switch insert mode: In command mode, insert the (lower case) cursor and then insert the (upper case) cursor at the end of the line to insert the I (lower case) insert I (uppercase) before the cursor start insert I (uppercase) insert o (lowercase) at the beginning of the row where the cursor is located Insert a new empty line insert O (uppercase) insert an empty row before the row where the cursor is located. In insert mode, Press ESC to return to command mode 2 sw
section
{: Previous paragraph
E) jump between lines with the cursor:
1G, gg: Jump to the beginning of the line
G: End of a row
# G: Row n, # indicates the number of rows
F) jump the cursor in the row:
^: The first non-blank character at the beginning of the line
$: End of the absolute line
0: Beginning of the absolute line
(2) screen flip
Ctrl + f: Turning a screen at the end of the file is equivalent to Pagedown.
Ctrl + B: Flip a screen to the first part of the file to operate on Pageup
Ctrl +
historical commandCtrl + R-search The backwards with multi occurrenceCtrl + u-delete Backward from cursor//password input error when it is more usefulCtrl + xx-move between EOL and current cursor positionCtrl + x @-Show possible hostname completionsCtrl + z-suspend/stop the commandAdd:Ctrl + H-delete the current characterCtrl + W-delete the last word enteredALT key related shortcut keys:Seldom used in peacetime. Some conflicts with remote login tools.Alt + Alt + >-Move to the last line in theAl
Character editing:X: Delete the character at the cursor;#x: Delete the # characters at the beginning of the cursor;XP: Swap the position of the character where the cursor is located and the character behind it;Replace command (R, replace)R: the character at which the cursor is replacedDelete command:D: Delete command, can be combined with the cursor jump character, to achieve range deletion;d$:d^:D0:DwDeDb#COMMANDDD: Delete the line where the cursor is located;#dd: Multi-line deletion;Paste comm
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.