close VIM Command

How to use close Command in Linux VIM editor?

Explanation


close command is used to close the split windows and display only one file at a time.

Usage:

:close

Example:

  • Open the 'one.txt' file
    $ vim one.txt
  • To split the windows vertically
    Enter :vspilit
    close vim commands
  • To close the split
    Enter :close
    Close Split Windows Vim

Ask Questions

Ask Question