Tuesday, June 18, 2013

Split the screen in vi - horitzontally or vertically

Most of us have some time in need to compare the two files to compare same file on different line or section,

then you will find 'split' can be very handy.

 the simplest usage is to type 'split' command that will split the screen horizontally.

You can split the open file the open file in vi  vertically by

to switch between the screen you need to use

To unsplit/ close the open file , you need to use simple command

No comments:

Post a Comment