General Flashcards
1
Q
How do you search for the word under the cursor?
A
*
2
Q
Delete to the end of a line
A
d$
3
Q
Vim: Append at end of line
A
A
4
Q
Delete character under cursor
A
x
5
Q
VIM: Delete the word under the cursor
A
Get on the first letter than ‘dw’
6
Q
Delete a word under the cursor but leave spaces so to reinsert another word
A
de
7
Q
Move to start of line
A
0
8
Q
Move two words forward
- Start of 3rd word
- end of 2nd word
A
- 2w
- 2e
9
Q
Move to end of line
A
$
10
Q
Vim: Delete ‘n’ number of words at same time
A
dnw
11
Q
Delete a full line
A
dd
12
Q
delete ‘n’ lines
A
ndd
13
Q
place a freshly deleted (dd) line in the line under your current location
A
p
P will place before the cursor
14
Q
Replace the character under the cursor
A
r-char
15
Q
Remove rest of a word from after the cursor
A
ce