qall VIM Command

How to use qall Command in Linux VIM editor?

Explanation


qall stands for quit all
qall command is used to quit several windows at a time. If any of the window contains changes, vim will displays a message to save the changes. The cursor will move to the window in which changes have occurred.

Usage:

:qall

Example:

  • Open the 'one.txt' file
    $ vim one.txt
  • Open the file 'two.txt' in the split window
    Enter :split two.txt
  • Open the file 'three.txt' in the split window
    Enter :split three.txt
  • To quit all the windows
    Enter :qall
    qall vim commands
  • To quit all the window, without saving the changes
    Enter :qall!
    Quit All Windows Vim

Ask Questions

Ask Question