| 1961 | 2005 | 2020 | 2030 |
|---|---|---|---|
| 216 | 173 | 153 | 140 |
| 1961 | 2005 | 2020 | 2030 |
|---|
| Command | Function |
|---|---|
| yy | Copies the current line |
| xyy | Copies current line and x number of lines below |
| p | Pastes the copied text after the cursor |
| P | Pastes the copied text before the cursor |
| Command | function |
|---|---|
| X | Deletes the character before the cursor location |
| x or dl | Deletes the character at the cursor location |
| dw | Deletes the current word at the cursor location |
| dd | Deletes the whole line at the cursor location |
| d^ | Deletes from current cursor location to the beginning of the line |
| d$ | Deletes from current cursor location to the end of the line |
| command | function |
|---|---|
| a | Insert characters at the right of the cursor |
| A | Insert characters at the end of the line |
| i | Insert characters at the left of the cursor |
| I | Insert character at the beginning of the line |
| o | Insert a new line below the cursor |
| O | Insert a new line above the cursor |
| package main | |
| import ( | |
| "log" | |
| "os" | |
| "text/template" | |
| ) | |
| type Person struct { | |
| FirstName string |
| package main | |
| import ( | |
| "log" | |
| "os" | |
| "text/template" | |
| ) | |
| type Employee struct { | |
| FirstName string |