| Author |
Message |
circuit_breaker@canada.co *nix forums beginner
Joined: 05 Feb 2006
Posts: 7
|
Posted: Wed Jul 19, 2006 2:33 pm Post subject:
Colors in VI editor
|
|
|
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 |
|
 |
james *nix forums Guru Wannabe
Joined: 08 Mar 2005
Posts: 282
|
Posted: Wed Jul 19, 2006 3:10 pm Post subject:
Re: Colors in VI editor
|
|
|
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
|
Posted: Wed Jul 19, 2006 3:58 pm Post subject:
Re: Colors in VI editor
|
|
|
'Doh! I didn't know that...
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 |
|
 |
Philipp Ost *nix forums addict
Joined: 02 Jan 2006
Posts: 73
|
Posted: Wed Jul 19, 2006 8:21 pm Post subject:
Re: Colors in VI editor
|
|
|
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 |
|
 |
Pete Fenelon *nix forums beginner
Joined: 06 Mar 2005
Posts: 9
|
Posted: Wed Jul 19, 2006 8:44 pm Post subject:
Re: Colors in VI editor
|
|
|
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 |
|
 |
jpd *nix forums Guru
Joined: 22 Feb 2005
Posts: 877
|
Posted: Wed Jul 19, 2006 10:00 pm Post subject:
Re: Colors in VI editor
|
|
|
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 |
|
 |
John Doe *nix forums addict
Joined: 26 Mar 2005
Posts: 85
|
Posted: Thu Jul 20, 2006 7:44 pm Post subject:
Re: Colors in VI editor
|
|
|
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 |
|
 |
Google
|
|
| Back to top |
|
 |
|