niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD
Colors in VI editor
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
Author Message
John Doe
*nix forums addict


Joined: 26 Mar 2005
Posts: 85

PostPosted: Thu Jul 20, 2006 7:44 pm    Post subject: Re: Colors in VI editor Reply with quote

jpd <read_the_sig@do.not.spam.it.invalid> wrote:
Quote:
Begin <v5i2p3-sk01.ln1@stratos.fenelon.com
On 2006-07-19, Pete Fenelon <pete@fenelon.com> wrote:
vi on the FreeBSD box is "real" vi;

vi on the Linux box is almost certainly vim. vim exists in
ports/editors.

As an aside, some(?) linux boxes do seem to come with nvi installed or
have it in a package somewhere. Then replace the default vi=vim alias
with a vi=nvi alias.


I don't know other Linux distros but on Slackware vi = elvis.
Back to top
jpd
*nix forums Guru


Joined: 22 Feb 2005
Posts: 877

PostPosted: Wed Jul 19, 2006 10:00 pm    Post subject: Re: Colors in VI editor Reply with quote

Begin <v5i2p3-sk01.ln1@stratos.fenelon.com>
On 2006-07-19, Pete Fenelon <pete@fenelon.com> wrote:
Quote:
vi on the FreeBSD box is "real" vi;

<ObNitPick> It's nvi, the CSRG vi. It is supposed to be bug-for-bug
compatible though. </> ``vi'' used to be encumbered, but has been
released under a BSD style licence and can be found here:

http://ex-vi.sourceforge.net/


Quote:
vi on the Linux box is almost certainly vim. vim exists in
ports/editors.

As an aside, some(?) linux boxes do seem to come with nvi installed or
have it in a package somewhere. Then replace the default vi=vim alias
with a vi=nvi alias.


--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
This message was originally posted on Usenet in plain text.
Any other representation, additions, or changes do not have my
consent and may be a violation of international copyright law.
Back to top
Pete Fenelon
*nix forums beginner


Joined: 06 Mar 2005
Posts: 9

PostPosted: Wed Jul 19, 2006 8:44 pm    Post subject: Re: Colors in VI editor Reply with quote

circuit_breaker@canada.com wrote:
Quote:
Hi,

I remotely connect to (1) a FreeBSD 6 server and (2) a Fedora Core4
server using PuTTy. When I'm connected to my Fedora box, the VI editor
has colored keywords and line/char numbering at the bottom but not the
FreeBSD box. Can I enable it there too?

vi on the FreeBSD box is "real" vi; vi on the Linux box is almost
certainly vim. vim exists in ports/editors.

pete
--
pete@fenelon.com "That is enigmatic. That is textbook enigmatic..." - Dr Who
"There's no room for enigmas in built-up areas." - N Blackwell
Back to top
Philipp Ost
*nix forums addict


Joined: 02 Jan 2006
Posts: 73

PostPosted: Wed Jul 19, 2006 8:21 pm    Post subject: Re: Colors in VI editor Reply with quote

If you install vim(1) you firstly have to create a config-file before
having colors enabled. Please read the man-page on how to do that.

Philipp
Back to top
circuit_breaker@canada.co
*nix forums beginner


Joined: 05 Feb 2006
Posts: 7

PostPosted: Wed Jul 19, 2006 3:58 pm    Post subject: Re: Colors in VI editor Reply with quote

'Doh! I didn't know that... Smile
Thanks.

james <at> hal-pc.org wrote:
Quote:
circuit_breaker@canada.com wrote:
Hi,

I remotely connect to (1) a FreeBSD 6 server and (2) a Fedora Core4
server using PuTTy. When I'm connected to my Fedora box, the VI editor
has colored keywords and line/char numbering at the bottom but not the
FreeBSD box. Can I enable it there too?

no, you can't "enable" colors in vi, but you can install vim like you're
using on the Fedora box.

--
- - james <at> hal-pc.org - -
"Believe nothing, no matter where you read it, or who said it,
unless it agrees with your own reason and your own common sense."
- The Buddha
- - - - - - - - - - - - - - -
Back to top
james
*nix forums Guru Wannabe


Joined: 08 Mar 2005
Posts: 282

PostPosted: Wed Jul 19, 2006 3:10 pm    Post subject: Re: Colors in VI editor Reply with quote

circuit_breaker@canada.com wrote:
Quote:
Hi,

I remotely connect to (1) a FreeBSD 6 server and (2) a Fedora Core4
server using PuTTy. When I'm connected to my Fedora box, the VI editor
has colored keywords and line/char numbering at the bottom but not the
FreeBSD box. Can I enable it there too?

no, you can't "enable" colors in vi, but you can install vim like you're
using on the Fedora box.

--
- - james <at> hal-pc.org - -
"Believe nothing, no matter where you read it, or who said it,
unless it agrees with your own reason and your own common sense."
- The Buddha
- - - - - - - - - - - - - - -
Back to top
circuit_breaker@canada.co
*nix forums beginner


Joined: 05 Feb 2006
Posts: 7

PostPosted: Wed Jul 19, 2006 2:33 pm    Post subject: Colors in VI editor Reply with quote

Hi,

I remotely connect to (1) a FreeBSD 6 server and (2) a Fedora Core4
server using PuTTy. When I'm connected to my Fedora box, the VI editor
has colored keywords and line/char numbering at the bottom but not the
FreeBSD box. Can I enable it there too?

Thanks.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
The time now is Thu Dec 04, 2008 4:03 am | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts the function to switch values ie for alternating between ... monomaniac21 PHP 4 Wed Jul 12, 2006 8:26 am
No new posts Crimson Editor query V S Rawat Perl 5 Tue Jul 04, 2006 6:46 am
No new posts mysql editor David Johnstone PHP 8 Tue Jun 27, 2006 9:43 am
No new posts Command Line Commands And Editor Commands clusardi2k@aol.com VMS 5 Mon Jun 26, 2006 11:43 am
No new posts Windows like C++ editor for linux Saurabh Sardeshpande C++ 19 Fri Jun 23, 2006 3:31 pm

Loans | Buy PSP | Download movies | Mortgage Calculator | Literatura fantastica
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1453s ][ Queries: 20 (0.0617s) ][ GZIP on - Debug on ]