Docsity

OSDI | CS 551 - Operating System Design and Implementation, Quizzes of Operating Systems

Toggle sidebar
bg1
TERM 1
VI Sheet I
DEFINITION 1
:q Quit if you have saved changes.:q! Exit without saving
changes.:wq Write and exit.or :x
TERM 2
VI Sheet
II
DEFINITION 2
e To end of a word.b To start of a word.0 To start of a line.$
To end of a line.H To first line of the screen.M To middle line
of the screen.L To last line of the screen.:n Jump to line
number n.
TERM 3
VI Sheet III
DEFINITION 3
j Up Arrowk Down Arrowh Left Arrowl Right Arrow
TERM 4
VI Sheet IV
DEFINITION 4
i Insert before cursor.I Insert to start o f the current line.a Append
after cursor.A Append to end of the c urrent line.o Open a new line
below and insert.O Open a new line a bove and insert.C Change the
rest of the current line.r Overwrite o ne character. After overwriting
the single character, go back to com mand mode.R Enter insert
mode but replace characters rathe r than inserting.The ESC key
Exit insert/overwrite mode and go ba ck to command mode.x
Delete characters under the curso r.X Delete characters before the
cursor.dd or :d Delete the current lin e.
TERM 5
VI Sheet V
DEFINITION 5
u Undo the last action.U Undo all latest chan ges that were made to the current
line.Ctrl + r Redo./pattern Search the file for pattern.n Scan for next search
match in the same direction.N Scan for next search match but opposite
direction.:rs/foo/bar/a Substitute foo with bar. r determines the range and a
determines the arguments.The range (r) can benothing Work on current line
only.number Work on the line whose num ber you give.% The whole
file.Arguments (a) can beg Replace all occurr ences in the line. Without this, Vim
replaces only the first occurrences in each lin e.i Ignore case for the search
pattern.I Don't ignore case.c Confirm each su bstitution. You can type y to
substitute this match, n to skip this match, a to substitute this and all the
remaining matches ("Yes to all"), and q to qu it substitution.
pf2

Partial preview of the text

Download OSDI | CS 551 - Operating System Design and Implementation and more Quizzes Operating Systems in PDF only on Docsity!

TERM 1

VI Sheet I

DEFINITION 1

:q Quit if you have saved changes.:q! Exit without saving

changes.:wq Write and exit.or :x

TERM 2

VI Sheet

II

DEFINITION 2

e To end of a word.b To start of a word.0 To start of a line.$

To end of a line.H To first line of the screen.M To middle line

of the screen.L To last line of the screen.:n Jump to line

number n.

TERM 3

VI Sheet III

DEFINITION 3

j Up Arrowk Down Arrowh Left Arrowl Right Arrow

TERM 4

VI Sheet IV

DEFINITION 4

i Insert before cursor.I Insert to start of the current line.a Append

after cursor.A Append to end of the current line.o Open a new line

below and insert.O Open a new line above and insert.C Change the

rest of the current line.r Overwrite one character. After overwriting

the single character, go back to command mode.R Enter insert

mode but replace characters rather than inserting.The ESC key

Exit insert/overwrite mode and go back to command mode.x

Delete characters under the cursor.X Delete characters before the

cursor.dd or :d Delete the current line.

TERM 5

VI Sheet V

DEFINITION 5

u Undo the last action.U Undo all latest changes that were made to the current line.Ctrl + r Redo./pattern Search the file for pattern.n Scan for next search match in the same direction.N Scan for next search match but opposite direction.:rs/foo/bar/a Substitute foo with bar. r determines the range and a determines the arguments.The range (r) can benothing Work on current line only.number Work on the line whose number you give.% The whole file.Arguments (a) can beg Replace all occurrences in the line. Without this, Vim replaces only the first occurrences in each line.i Ignore case for the search pattern.I Don't ignore case.c Confirm each substitution. You can type y to substitute this match, n to skip this match, a to substitute this and all the remaining matches ("Yes to all"), and q to quit substitution.