LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-13-2003, 01:26 PM   #1
johnyy
Member
 
Registered: Jun 2003
Posts: 92

Rep: Reputation: 15
vi editor ??


how could i have two terminal, one on top,one on bottom, so i could compare two files, i mean i open a text file with command vi new.txt and i open other file at the same terminal, to compare it those two files..

thanks
 
Old 07-13-2003, 01:35 PM   #2
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
Or, you could use the "split" feature. Open a file with "vi firstfile.txt", and then type ":sp {secondfile.txt}." This will split the screen into two areas with a file in each.

Ian
 
Old 07-13-2003, 01:37 PM   #3
seabass55
Member
 
Registered: Jan 2003
Location: 127.0.0.1
Distribution: Fedora&Gentoo
Posts: 207

Rep: Reputation: 30
Well if your using X you can just open up two terminals windows.

You can also use the cmp and diff commands to compare files (diff3 if comparing 3 files).

Seabass
 
Old 07-13-2003, 01:40 PM   #4
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
Forgot to mention: to navigate between the two windows, use "Ctrl-W <Up Arrow>" and "Ctrl-W <Down Arrow>"

Ian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vi editor IwantLINUX Linux - Newbie 8 06-28-2005 10:28 AM
C++ editor onelung02 Programming 12 05-11-2005 01:51 AM
VI Editor rakriege Linux - General 2 02-04-2004 07:57 PM
c best editor alaios Programming 24 12-08-2003 06:50 AM
Which editor? keymoo Linux - Newbie 26 11-10-2002 11:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration