vertical split screen in vim or emacs

Does anyone know how to do a vertical split screen of file1 with file2 in vim or emacs?
LVL 3
bryanlloydharrisAsked:
Who is Participating?
 
slyongConnect With a Mentor Commented:
Sorry.. submitted too fast.. or:

$ vi file1.txt
then in vi,
:vsplit file2.txt
0
 
slyongConnect With a Mentor Commented:
Hi

For vim:

$ vi -O file1.txt file2.txt
Use Ctrl-W l to move to the right window and Ctrl-W h to move to the left.

0
 
bryanlloydharrisAuthor Commented:
thanks
0
 
slyongCommented:
You are very welcome.  Thanks for the points
0
All Courses

From novice to tech pro — start learning today.