Sunday, June 23, 2013

vi - opening second file in split screen

Some we get in need of comparing two different files for over the section or lines.
To open the new file in the split window all u need to follow the below steps

to open  already existing file
vi file_name

now type
:new file_name

This will split the screen horizontally 

To split the window vertically , you need to use, on open vi file window
:vsplit file_name 

for more tutorial on vi
check out the links :
Split the screen in vi - horizontally or vertically

No comments:

Post a Comment