Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 9 subjective questions vi editor

CSE105 — Creative Engineering Workshop 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

    Explain the different modes of operation in the vi editor. How does a user switch between them?

  2. Question 2 of 20

    Describe the various ways to start the vi editor from the command line, including options to open at a specific line.

  3. Question 3 of 20

    Explain the basic cursor navigation commands (h, j, k, l) in vi. Why were these keys chosen for movement?

  4. Question 4 of 20

    Describe the word-based and line-based navigation commands available in vi with suitable examples.

  5. Question 5 of 20

    Explain the scrolling commands in vi and distinguish between full-screen and half-screen scrolling.

  6. Question 6 of 20

    Compare the various insert commands (i, I, a, A, o, O) used to enter insert mode in vi.

  7. Question 7 of 20

    Explain the different editing/change commands in vi such as r, R, cw, cc, and s.

  8. Question 8 of 20

    Describe the delete commands in vi with examples, including single-character, word, and line deletion.

  9. Question 9 of 20

    Explain in detail the copy (yank) and paste operations in vi. Discuss how the buffer works during these operations.

  10. Question 10 of 20

    Distinguish between the various save and exit operations in vi (:w, :q, :wq, :x, ZZ, :q!).

  11. Question 11 of 20

    Define the vi editor and explain its significance as a standard Unix/Linux text editor.

  12. Question 12 of 20

    Explain the concept of repeat counts (numeric prefixes) in vi commands with examples across navigation, deletion, and yanking.

  13. Question 13 of 20

    Describe how search operations work in vi and how they aid navigation within a file.

  14. Question 14 of 20

    Explain the substitute (search and replace) command in vi using the :s syntax with examples.

  15. Question 15 of 20

    Distinguish between the command mode and insert mode in vi. Why is understanding this distinction important for beginners?

  16. Question 16 of 20

    Explain the undo and redo commands in vi and their importance in the editing workflow.

  17. Question 17 of 20

    Describe how to join lines, transpose characters, and change case in vi using command-mode operations.

  18. Question 18 of 20

    Explain the concept of named and numbered buffers (registers) in vi and how they enhance copy-paste operations.

  19. Question 19 of 20

    A student accidentally makes several unwanted changes to a file in vi and wants to exit without saving any of them. Explain the steps and the command used, and contrast it with saving.

  20. Question 20 of 20

    Explain how marks work in vi and how they can be combined with navigation and editing commands.

That's unit 9

Long answers stick best when they're tested again soon. Run the MCQs on this unit, then come back to the questions you found hardest.