VIM + UNIX Flashcards

(41 cards)

1
Q

change to insert mode

A

i, I

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

arrow keys

A

HJKL (left down up right…WHO DOES THAT)

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

remove a character

A

x, X

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

find next, previous

A

f, F

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

repeat last thing

A

. (…)

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

move to start/end of line

A

0, $

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

Search text and flip through different places it is

A

/text + n, N (next, previous)

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

add a new line below/above

A

o, O

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

go to corresponding parentheses

A

%

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

move to start/end of entire thing

A

gg / G

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

change to normal mode

A

esc

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

go to beginning/end of current word

A

b, e

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

go to next word

A

w

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

insert smth multiple times… sigh…

A

num + i + smth + esc

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

find next/prev occurence of word under cursor

A

*, #

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

jump to specific line number

A

num + G

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

replace character under your cursor

A

r + replacement

18
Q

delete

20
Q

visual/select mode

23
Q

save without saving

25
redo
ctrl + R
26
list cur dir
ls
27
see contents of a file
more
28
make dir
mkdir
29
move file
mv
30
rename file
mv
31
change dir
cd
32
print working directory
pwd
33
previous/parent directory
..
34
copy file
cp
35
remove file
rm
36
remove directory
rmdir
37
long format list
ls -l
38
format of long list (-rw-r--r-- keeper prim 547 9:31 chimps)
type, security, owner, group, size, last mod
39
different levels of security
user, group, other
40
change security
chmod level (+-) permission file
41
list group memberships
groups