vim Flashcards

1
Q

How do you make the tab button use spaces?

A

set expandtab

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

Set the number of spaces the tab button uses?

A

set tabstop=2

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

Set number of spaces the visual editor arrow uses?

A

set shiftwidth=2

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

How to auto-indent when hitting enter?

A

set autoindent

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

Move forward one word in vim.

A

w

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

Move backward one word in vim.

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

List annotations for specified pods.

A

k annotate pod foo –list

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