VIM + UNIX Flashcards
(41 cards)
1
Q
change to insert mode
A
i, I
2
Q
arrow keys
A
HJKL (left down up right…WHO DOES THAT)
3
Q
remove a character
A
x, X
4
Q
find next, previous
A
f, F
5
Q
repeat last thing
A
. (…)
6
Q
move to start/end of line
A
0, $
7
Q
Search text and flip through different places it is
A
/text + n, N (next, previous)
8
Q
add a new line below/above
A
o, O
9
Q
go to corresponding parentheses
A
%
10
Q
move to start/end of entire thing
A
gg / G
11
Q
change to normal mode
A
esc
12
Q
go to beginning/end of current word
A
b, e
13
Q
go to next word
A
w
14
Q
insert smth multiple times… sigh…
A
num + i + smth + esc
15
Q
find next/prev occurence of word under cursor
A
*, #
16
Q
jump to specific line number
A
num + G
17
Q
replace character under your cursor
A
r + replacement
18
Q
delete
A
d
19
Q
paste
A
p
20
Q
visual/select mode
A
v
21
Q
save
A
:w
22
Q
quit
A
:q
23
Q
save without saving
A
:q!
24
Q
undo
A
u
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