SCA_SLES15 practice question 9 of 15

True or false: It is not possible to open more than one file in Vim without running a second instance.

Full set: 69 questions
Answer options
A: True Correct answer
B: False
Correct Answer:
F; A. True; L; S; E
Explanation

Vim is expressly designed to handle more than one file within a single program instance. You can:
• start Vim with several files on the command line (e.g. vim file1 file2),
• load additional files later with commands such as :e {file}, :split {file}, :vsplit {file}, or :tabedit {file}, and
• move between them with :next, :prev, or the various window / tab commands. Because all of these facilities exist inside one running Vim process, the statement that “it is not possible to open more than one file in Vim without running a second instance” is false. Why Incorrect Option is Wrong:
• True – would claim such multi-file capability does not exist, which directly contradicts the documented commands above.

References

1. vim(1) manual page, “SYNOPSIS” and “Starting VIM” – “vim [options] [file …]” (opens multiple files), “:next”, “:split file” (open additional files). SUSE SLES 15 vim package man page.

2. SUSE Linux Enterprise Server 15 SP4 Administration Guide, §15.6 “Using the vi/vim editor”, paragraph “Working with several files” – describes :next and other commands to switch between multiple files in a single Vim session.

Scroll to Top