Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2975
  • Last Modified:

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?
0
bryanlloydharris
Asked:
bryanlloydharris
  • 3
2 Solutions
 
slyongCommented:
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
 
slyongCommented:
Sorry.. submitted too fast.. or:

$ vi file1.txt
then in vi,
:vsplit file2.txt
0
 
bryanlloydharrisAuthor Commented:
thanks
0
 
slyongCommented:
You are very welcome.  Thanks for the points
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now