Click to See Complete Forum and Search --> : colours turned on in VI


Huggy
12-08-2001, 01:33 PM
I have VI or VIM which ever you want to call it version 6.0z from Redhat 7.1
and I can't get the colours turned on for the text.
I have made my .exrc file and I
1 set number
syn on
set shiftwidth=4
set tabstop=4
set showmode
set showcmd
set ruler
:abbr #s #!/usr/bin/perl -w
:abbr #b #!/bin/bash
:abbr #c #===========================

and it will not work I have tried all kinds of things. whats going on?

X_console
12-08-2001, 03:02 PM
I've noticed that if your TERM is set to xterm, it doesn't seem to want to use the colors. Try typing export TERM=linux and then start vim and do :syntax on

Huggy
12-08-2001, 03:37 PM
no go...
give me a message of

Sorry, this command is not implemeted

this is BS don't tell I need a newer version or I need to install something else...
ahhhh... :mad: I'm going nuts all these little things are making me go out of my head.

Strike
12-08-2001, 07:50 PM
If you invoke it with vi then you will get vim with "vi-compatibility" turned on. Invoke it as vim.

Huggy
12-09-2001, 12:39 PM
ok I type vim and nothing but i type vi and the splash screen comes up (word for word):

VIM - Vi IMproved
version 6.0z ALPHA
by Bran Moolenaar et al.
Vim is open source and freely distributable
Help poor children in Uganda!

type :help iccf<enter> for information
type :q<enter> to exit
type :help<enter> or <F1> for on-line help
type :help version6<enter> for version info


I'm guessing that my 'soft link' is not there for VIM command what a pain in the ***. :mad:

speck
12-09-2001, 06:29 PM
You probably only have vim-minimal(vi) installed and not vim-enhanced(vim). You can install vim-enhanced and remove vim-minimal if you like. If you do remove vim-minimal though, it will uninstall "/bin/vi" and "/bin/view".

I'm used to typing "vi filename" to open a file for editing, so I made a script named "/bin/vi" that only has a call to vim (/usr/bin/vim $1). You can do the same for "/bin/view", but use "/usr/bin/vim -R $1".


Speck