Solved

vertical split screen in vim or emacs

Posted on 2006-07-13
4
2,945 Views
Last Modified: 2013-12-16
Does anyone know how to do a vertical split screen of file1 with file2 in vim or emacs?
0
Comment
Question by:bryanlloydharris
  • 3
4 Comments
 
LVL 24

Assisted Solution

by:slyong
slyong earned 300 total points
ID: 17105753
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
 
LVL 24

Accepted Solution

by:
slyong earned 300 total points
ID: 17105757
Sorry.. submitted too fast.. or:

$ vi file1.txt
then in vi,
:vsplit file2.txt
0
 
LVL 3

Author Comment

by:bryanlloydharris
ID: 17110493
thanks
0
 
LVL 24

Expert Comment

by:slyong
ID: 17111346
You are very welcome.  Thanks for the points
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now