General Flashcards

1
Q

How do you search for the word under the cursor?

A

*

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Delete to the end of a line

A

d$

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Vim: Append at end of line

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Delete character under cursor

A

x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

VIM: Delete the word under the cursor

A

Get on the first letter than ‘dw’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Delete a word under the cursor but leave spaces so to reinsert another word

A

de

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Move to start of line

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Move two words forward
- Start of 3rd word
- end of 2nd word

A
  • 2w
  • 2e
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Move to end of line

A

$

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Vim: Delete ‘n’ number of words at same time

A

dnw

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Delete a full line

A

dd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

delete ‘n’ lines

A

ndd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

place a freshly deleted (dd) line in the line under your current location

A

p
P will place before the cursor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Replace the character under the cursor

A

r-char

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Remove rest of a word from after the cursor

A

ce

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

vim: Name of file/ line number

A

Ctrl g

17
Q

Vim: Go to End of file

A

G

18
Q

Vim: Go to top of file

A

gg

19
Q

Navigate to specific line

A

Line G

20
Q

Return to where you just came from

A

Ctrl o

21
Q

Vim: Locate the paired bracket

A

% while on the lead

22
Q

vim: Search and replace first instance in a line

A

s/old/new

23
Q

Replace all instances in a line

A

s/old/new/g

24
Q

Replace all instances in a file

A

%s/old/new/g

25
Q

Replace all instances in a file with per instance confirmation

A

%s/old/new/gc

26
Q

Run a shell command

A

:! Command

27
Q

Visual selection

A

v then cursor

28
Q

Retrieve (insert) file or command

A

:r command/file

29
Q

Move to end of just the next word

A

e

30
Q

Replace a full word

A

R

31
Q

Navigate to the end of the next line

A

j$

32
Q

visual mode

A

v

33
Q

Copy one word

A

yw

34
Q

paste before cursor

A

P

35
Q

Ignore case for searching

A

:set ic

36
Q

Ignore case just to search one word

A

:/search \c

37
Q

Navigate to start of text on line
(but not absolute start of line)

A

_

(underscore)

38
Q

Jump ON to a specific character

A

f-char (first instance of)
I.e. “f(“

F to reverse

39
Q

Jump UP to (just before-insert) a specific character

A

t-char
T to reverse