PrepAway - Latest Free Exam Questions & Answers

Which of the following key-combinations are used to view a file in two windows in a single vim screen?

Which of the following key-combinations are used to view a file in two windows in a single vim
screen?
Each correct answer represents a complete solution. Choose two.

PrepAway - Latest Free Exam Questions & Answers

A.
Ctrl-w, v

B.
Ctrl-w, s

C.
:wq

D.
:q!

Explanation:

A file can be viewed in two windows in a single vim screen by issuing Ctrl-w, s and Ctrl-w, v. The
Keycombination
Ctrl-w, s splits the vim screen horizontally. The key-combination Ctrl-w, v splits the screen
vertically.
Answer option C is incorrect. The Key-combination :wq is used to save a file and quit from the file
in a vim text-editor.
Answer option D is incorrect. The key combination :q! is used to quit from a file without saving its
contents.
What is vim?
Vim is an advanced text editor that seeks to provide the power of the Unix editor vi with a more
complete feature set. Vim is useful whether a user is already using vi or using a different editor.
Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version
of the vi editor distributed with most Unix systems. It is perfect for all kinds of text editing, from
composing email to editing configuration files.


Leave a Reply