| @@ -0,0 +1,37 @@ | |||
| 1 | + | # vim | |
| 2 | + | ||
| 3 | + | * toggle control characters on/off: | |
| 4 | + | ||
| 5 | + | ``` | |
| 6 | + | :set list | |
| 7 | + | :set nolist | |
| 8 | + | ``` | |
| 9 | + | ||
| 10 | + | ||
| 11 | + | --- | |
| 12 | + | ||
| 13 | + | Select word currently under the cursor: | |
| 14 | + | ||
| 15 | + | * enter `normal` mode | |
| 16 | + | * key `viw` | |
| 17 | + | ||
| 18 | + | or | |
| 19 | + | ||
| 20 | + | * hit `*` | |
| 21 | + | ||
| 22 | + | ||
| 23 | + | --- | |
| 24 | + | ||
| 25 | + | Uppercase selected text: | |
| 26 | + | ||
| 27 | + | * enter `normal` mode | |
| 28 | + | * select text, then hit `U` | |
| 29 | + | ||
| 30 | + | ||
| 31 | + | --- | |
| 32 | + | ||
| 33 | + | Replace selected text: | |
| 34 | + | ||
| 35 | + | * enter `normal` mode | |
| 36 | + | * select text | |
| 37 | + | * type `cw<replacement text>` | |
simon revised this gist 1 month ago · d3cd352
1 file changed, 37 insertions