. Go to line 75: 75 or 75g8. Undo last commandU9. Redo last undoCTRL + R10. move cursor to next occurrence of character 'C''FC11. delete a lineC/CC => I or D/dd12. Open a new line above the cursor's line and enter insert modeO13. Yank (copy) the selected textYYank the selected text into buffer"A + Y14. Put (paste) Copied text after the cursorPPut (paste) Copied text in buffer A after the cursor"A + P15. Get help on command ''cmd''Help cmd16. Forward f
CTRLKey bound_____________CTRL +-Jump to the start of the lineCTRL + B-Move back a charCTRL + c-Terminate the commandCTRL + d-Delete from under the cursorCTRL + E-Jump to the end of the lineCTRL + F-Move forward a charCTRL + k-Delete to EOLCTRL + L-Clear the screenCTRL + R-Search the history backwardsCTRL + R-Search the history backwards with multi occurrenceCTRL + u-Delete backward from cursorCTRL + xx-Move Between EoL and current cursor positionCTRL + x @-Show possible hostnameCompletionsCTRL
System.Drawing; Using system.linq;using system.text;using system.windows.forms;using system.threading;namespace ProgressBarSample{/ /define delegates, asynchronously calling delegate void ShowProgressDelegate (int totalstep, int currentstep); Public partial class Form1:form {public Form1 () {InitializeComponent (); }//2, network grilled insectsOften encountered such a scene, through the pest program, to the Internet to obtain the required resources. In fact, an important part o
Directory
First, we will introduce the differences between the two.
1. A constant is a value, and an enumeration is a set of unchanged values.
2. enumeration is defined by yourself before use. There are certain constraints and constants can be defined at will.
3. If the input value of enumeration is a fixed value, no error will occur. The constant is a value and the passed parameter is arbitrary.
4. restrict users from assigning values at will. You can only select values in the enumerated v
(Fieldinfo Field In Fieldinfos){ If (Field. fieldtype. isenum){Object [] objs = Field. getcustomattributes ( Typeof (Descriptionattribute ), False );Dic. Add (field. Name, (descriptionattribute) objs [ 0 ]). Description );}} Return Dic;} Method 2:Obtain the value and expressed key-value pairs Obtain --- value + description /// /// Read from the enumeration type and its features and return a key-Value Pair /// /// Type. The format of this parameter is typeof (t
Http://www.hickwu.com /? P = 264
C-l clear screen and clear command
C-a move the cursor to the beginning of the lineC-e move the cursor to the end of the row
Delete one character from C-HC-d deletes one character from the forwardC-B move one character backC-F move one character forward
The following operations are estimated to be similar to the Yank operation of Emacs, which can be understood as an independent clipboard mechanism:C-W cut the previ
of text is left-aligned. gqap: full-range shuffling gqq: This line of text gqg: full text re-arrangement If the part is marked by visual mode, only the part marked by GQ will be re-arranged.
(8) Copy (Yank) y2y: Copy 2 rows y2w: Copy 2 words y1g: copy to the beginning YG: copy to the end of the file y ^/y0: copy to the beginning of the line Y $: copy to the end of the line "Ayy: copy this line of text to the buffer "AP: paste the buffer
the "v" command to start the visual mode. You will find that the entire line is highlighted before you move it. Moving left and right does not have any effect. By moving up and down, you can select multiple rows at a time.For example, you can use "vjj" to select three rows:
Copy in VIM
I. Copy and pastTo copy the text from one place to another, you can delete it, run the "U" command to restore it, and then copy it to another place using "p. There is also a simple method: extract (
Original article: Kevin Yank transferred from: www.linuxforum.net (congratulations, activate it again)
For a long time, as one of the biggest selling points of the server-side scripting language, PHP automatically creates a global variable for the value submitted from the form. In PHP 4.1, PHP producers recommended an alternative way to access and submit data. In PHP 4.2, they canceled the old practice! As I will do in this articleArticleAs explai
# Ziplib isZip, Gzip, tar and Bzip2 LibraryWritten entirely in C # For. NET platform. it is implemented as an assembly (installable In the GAC), and thus can easily be ininitialized into other projects (in any.. Net Language ). # ziplib was ported from the GNU classpath zip library for use with # developer (http://www.icsharpcode.net/OpenSource/SD) which needed gzip/zip compression. later Bzip2 compression and tar archiving was added due to popular demand.
Download: http://www.icsharpcode.net/Op
scopes. For example, what is the best practice in DW? The combination of nbsp; D and range W indicates that a word D (elete) W (ORD) is deleted ).The command list is as follows:D. Delete)Y replication (Yank)P placement (Put)C Change)The range can be:E? BR> W cursor position to the first letter of the next wordB. Place the cursor on the first letter of the last word.$ Move the cursor to the last letter in the column0 cursor position to the first lette
(10000); //when the time of arrival executes the event; t.elapsed + = new System.Timers.ElapsedEventHandler (theout); t.autoreset = true;//setting is executed once (false) or always (true); t.enabled = true;//Whether to execute the System.Timers.Timer.Elapsed event; ====================================I wrote a method of using the System.timer class1 public class bf_checkupdate2 {3 private static object lockobject = New object ();45//define data Check timer6 private static Timer Chec
Reprinted from: http://www.cnblogs.com/yank/p/3536863.htmlC# Programming Summary (10) Character transcodingTo accommodate a particular need, characters need to be transcoded according to rules for easy transmission, presentation, and other operations.Look at the transcoding below and you'll know what he's for.1, String transcodingThe conversion is completed according to the original encoding format and the target encoding format. However, there may be
, starting from the current lineCopy and paste textThe following command runs your copy-and-paste textYY//Copy (Yank) current row to cache (buffer)Nyy or Yny//Copy the N rows following the current line to the cache (buffer)P//Paste the text in the (paste) cache after the current line
Other commandsSearch textReplace a word or phrase, which often appears in text editing. To locate a specified string, you can use the following command:/string//In
Alt+0
Select 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+
Select 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
Sel
, compile-time can be reported, the method definition code is as follows: The use is simple:People type definition class people {public string Name {get; set;} public int age {get; set;} public string Sex {get; set;} public bool Isbuycar {get; set;} Public DateTime? Birthday {get; set;} } Here's how to use: var p = getpropertyinfo Note that the dynamic type also has problems with boxing and unpacking, as describe
stop restart MySQL service sudo/library/startupitems/mysqlcom/mysqlcom restart
At this point, the apache+mysql+php installation configuration is complete.
Attached: Introduction to the VIM editorThere are two modes of vim:1: Command mode
Shift+v, select a row y---Copy a line yy----Copy the current row (Yank-line) p---copy and paste the contents of the next row of the current row x, delete one character: Wq, save exit: Q! , do not save exit I, ent
command. In this case, you can use the m command (mark) to make a mark in the text. Let's take a specific example. For example, the following text is available: int main (void) {double x = 1e-2; double y [5]; y [0] = gsl_log1p (x ); y [1] = log1p (x); y [2] = log1p2 (x); y [3] = log1p3 (x ); y [4] = log (1 + x); printf ("gsl_log1p = %. 15e \ n ", y [0]); printf (" log1p = %. 15e \ n ", y [1]); printf (" log1p2 = %. 15e \ n ", y [2]); printf (" log1p3 = %. 15e \ n ", y [3]); printf (" log (1 + x
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.