split VIM Command

How to use split Command in Linux VIM editor?

Explanation


spilit command is used to split the windows horizontally. The current file will be displayed in both the split.

Usage:

:split

Example:

  • Open the 'one.txt' file
    $ vim one.txt
  • To split the windows
    Enter :split
    split vim commands

Ask Questions

Ask Question