vim syntax highlighting

Magnus Therning magnus at therning.org
Thu Aug 25 08:02:44 UTC 2005


On Thu, Aug 25, 2005 at 09:35:25AM +0200, Christoph Georgi wrote:
>hi,
>
>i've got another problem with vim: i don't get my syntax highlighting to
>work.. with gvim everything's working, but using vim on my console or
>the X terminal, the colors just don't work. i ran the color something
>makro that should display all possible colors, but it didn't display one.

I have the following in my ~/.vimrc:

 if &t_Co > 2 || has("gui_running")
     syntax on
     set hlsearch
     if has("gui_running")
         colorscheme elflord
     else
         colorscheme murphy
     endif
 endif

/M

-- 
Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
magnus at therning.org
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

Perpetual growth is the creed of the cancer cell.
     -- Edward Abbey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050825/9a442f64/attachment.sig>


More information about the ubuntu-users mailing list