selected text will be highlighted. Finally execute the "operator" command, such as delete the command "D", copy the Command "Y".With the "V" command, the entire row is selected, "H", "L" will not work.Use the "Ctrl + V" command to process text within a rectangular block. When using block visual mode, there will be Four Corners, "o" command to move the cursor to the diagonal, while "o" can be moved to the same side of the corner.Tip: "~" To change the case of the selected text;"U" all becomes lo
, sometimes need to modify individual words, and sometimes, the input of a long period of a command, we say not all, the whole row deleted. The usual delete keys are BackSpace and delete, but is it too slow to delete one character at a time? So, please memorize the following shortcut keys:
shortcut Keys
function
Ctrl + U
Delete everything from the cursor to the beginning of the line, and if the cursor is at the end, the entire row is deleted.
character)R: Switch to replace mode (fourth mode: Replace mode, always replace the current character)
Delete command:
D: Delete command, can be combined with the cursor jump character, to achieve range deletiond$: Delete to end of lined^: Delete to non-empty headerD0: Delete to the beginning of the lineDW: Delete a wordDe: Delete forwardDB: Delete later#COMMAND
DD: Delete the line where the cursor is located
#dd: Multiline Delete (5DD delete 5 lines)
D: Alwa
1. Select a text block. Using V to enter the visual mode, move the cursor key selection.2. The command to copy is Y, which is yank (lifted), and the commonly used commands are as follows:Y Copies the selected block to the buffer when a piece is selected using the V mode;yy copy entire row (Nyy or yny, copy n rows, n is number);y^ Copy the contents of the current to the wardrobe;y$ Copy the contents of the current to the end of the line;YW copy a word
text.3. Delete main:D: Delete to the end of the line.X: Deletes the previous character in the position of the cursor every time it is pressed.X: Every time you press the cursor, delete the following 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
cursor; p: The contents of the buffer are pasted at the top of the line where the current cursor is located, if it is an entire row, or paste to the front; copy (yank,y) where the current cursor is located: y: Copy, working behavior similar to D command;y^:y0: ye:yw:ya: #COMMAND yy: Copy a whole line #yy: Copy # line;3.1 Changing the commandChanging the command function is the ability to convert from edit mode to input mode, because changing what
Vi/vim copy and paste command 1. Select the text block. Use v to enter the visual mode and move the selected content of the cursor key. 2. the Copy command is y, that is, yank (mentioned). The Common commands are as follows: when y selects a block in v mode, it is used to copy the selected block to the buffer zone; yy copies the entire row (nyy or yny, n rows are copied, n is a number); y ^ copies the content from the current row header; y $ copies th
Kevin Yank was an interviewer at SitePoint. he published a Good and Bad PHP Code and elaborated on his views on the merits and demerits of the PHP Code through some Code examples. There are several simple things mentioned here:
Determine whether it is null before outputting the value of $ _ GET [query.The extra parentheses in the echo command are removed.The string is limited by single quotes, saving PHP time to search for replaceable variables from
Http://www.cnblogs.com/yank/archive/2011/10/24/2204145.htmlHttp://www.cnblogs.com/zwq194/archive/2012/08/06/2625403.htmlThe discussion of whether string is a value type or a reference type has not subsided, and has recently been studying performance issues, once again making this issue clear again today. Hope to bring you a little help. Please indicate if there are any errors.Consider the following example: //value type intA =1;
performed by the file owner, the operation cannot be successful: q! Exit do not save file 4 Copy (yank) command mode yy or Y copy the entire line of the cursor y ^ copy to the beginning of the line of the cursor, the cursor position Character y $ is not included. copy a word to the end of the row where the cursor is located, including the cursor position character yw, the cursor must copy the yG at the beginning of the word to the end of the file y1G
registers command is used to view detailed help descriptions of registers. here, the type is translated as follows: Untitled register "" -- the default register used by vim. The text source command is as follows: d/c/s/x/y10 digit naming register "0-" 9 -- vim caches the text generated by 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
partialcontent, and the description is part of the data.Code meaningRequest for a successful return206 Partial Content Part dataDownload the core code: Project Source:Http://files.cnblogs.com/yank/DownloadSample.rarThree, multi-threaded downloadThe above example provides a simple breakpoint continuation function, if you want to further implement multi-threaded download. The principle is very simple, we only need to download according to the si
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 CO N3: Copy the contents of line
Abstract: In this article, we will solve the problems we will encounter when building a database-driven website. We only use two new tools, PHP and MySQL. If your Web host supports PHP/MySQL, you will save a lot of trouble. If this is not the case, you don't have to worry about it. We will also learn how to install corresponding programs in Unix and Windows. This article is provided to senior web designers who may learn how to develop server programs. We will think that our readers are familiar
good by default.
MySql Configuration:Open the terminal and enter:
vim ~/.bash_profile
Enter I to edit and paste the following content
# mysqlalias mysql='/usr/local/mysql/bin/mysql'alias mysqladmin='/usr/local/mysql/bin/mysqladmin'# lsalias ls='ls -G'
Press ESC and enter: wqIn this way, you can directly enter mysql in the terminal. Enter exit to exit
Modify the MySql administrator password and enter:
Mysqladmin-u root password "root" start Mysql service sudo/Library/StartupItems/MySQLCOM start
name, whether the resumable file has changed, and whether the file is consistent with the file on the server after the download is completed.In addition, we can implement multi-threaded download Based on the Range attribute of the header, but here we will not post the code, paste it. This is the same as multi‑thread upload in the previous file upload. You can also download and view the provided demo code, which includes the complete implementation.
References
Http://www.cnblogs.com/
;}///conversion between Stream and file///write Stream to file Public voidStreamtofile (Stream stream,stringfileName) { //convert Stream to byte[] byte[] bytes =New byte[Stream. Length]; Stream. Read (Bytes,0, Bytes. Length); //sets the position of the current stream as the start of the streamStream. Seek (0, Seekorigin.begin); //write byte[] to fileFileStream fs =NewFileStream (FileName, FileMode.Create); BinaryWriter BW=NewBinaryWriter (FS); Bw. Write (bytes); Bw. Close (); F
: 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 backwards until found.?: Enter the keyword and find it is not looking, just press N and look forward until you find it.*: Find the same word backwards on the current page.#: Finds the same word forward on the cur
it was a problem with the video card, 10.10 does not seem to have this problem.
1.2 an error occurs in the Ubuntu partner source. If the sun-java-6 path cannot be found, you can directly install it on composer-I.
1.3 The machine with the clonezilla image must allow the root user to log on. Otherwise, a permission error is displayed. sudoPasswdRoot: Disable sudo passwd-l root.
1.4 There is a problem with the machine network after the image,IfconfigThe IP address is 127.0.0.1, And the ifup eth0 e
/syntastic '"Paint CSS colors with the real colorPlug ' Lilydjwg/colorizer '"ACK Code search (requires ACK installed in the system)Plug ' Mileszs/ack.vim 'If has (' Python ')"Yapf Formatter for PythonPlug ' Pignacio/vim-yapf-format 'endif"Relative numbering of lines (0 is the current line)"(disabled by default because was very intrusive and can ' t be easily toggled"On/off. When the plugin is present, 'll always activate the relative"Numbering every time you go to normal mode. Author refuses to
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.