LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-14-2004, 09:35 AM   #1
raees
Member
 
Registered: Nov 2003
Posts: 65

Rep: Reputation: 15
Switching off line number colors on vi or vim


Hi all,


How can i switch off my line number colors on vim. I am getting line numbers on yellow .

Also I tried to switch on my vim syntax coloring. I got an error

Error detected while processing /home/ruzhunna/.vimrc:
line 1:
E319: Sorry, the command is not available in this version: :syntax on

Here is my vim info

VIM - Vi IMproved

version 6.0.152
by Bram Moolenaar et al.
Vim is open source and freely distributable

This is on RH linux .. and the same .vimrc works fine on solaris

Please help .....

raees
 
Old 04-14-2004, 10:21 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You can copy the color scheme you're using to ~/.vim/colors. If the directory doesn't exist, create it. You can then edit it as you like.

Here is my .vimrc:
Code:
" Map Ctrl+N to (temporarily)  disable search highlighting
nmap <silent> <C-N> :silent noh<CR>
map :W :w
map :Q :q

" Settings
set softtabstop=4
set shiftwidth=4
set cindent
set ignorecase
set showmatch
set title
set showmode
set ttyfast
set wildchar=<TAB>
syntax on

" Use the java compiler and set the error format so we can jump between errors
set makeprg=javac\ %
set errorformat=%A%f:%l:\ %m,%-Z%p^,%-C%.%#

" Gentoo-portage specific stuff
if (getcwd() =~ 'gentoo-x86\|gentoo-src\|portage')
  set tabstop=4 shiftwidth=4 noexpandtab
endif
...and here is my ~/.gvimrc:
Code:
" Use all settings specifies in ~/.vimrc too
so ~/.vimrc

colo buttercream
"set guifont=Andale\ Mono\ 8
set guifont=ProFontWindows\ 9

Håkan
 
Old 04-19-2004, 07:27 AM   #3
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
How do you enable line numbering?

Thanks any help.
 
Old 04-19-2004, 09:10 AM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Type :set nu to enable it, and :set nu! to disable it if it is already enabled. To have it enabled through your .vimrc or .gvimrc it's the same command, only without the colon character.


Håkan
 
Old 04-21-2004, 07:31 AM   #5
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Thanks.
 
  


Reply



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
what controls colors in vi/vim? pfaendtner Linux - Software 3 03-24-2005 05:51 PM
how to get colors in emacs and vim pranith Linux - Newbie 1 02-11-2005 12:35 AM
regarding colors in vim and emacs pranith Linux - Newbie 0 02-10-2005 03:10 AM
vim colors Erik Thorsson Debian 1 02-09-2005 09:38 AM
vim suddenly changed colors??? spyghost Linux - Software 5 08-27-2003 10:13 AM

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

All times are GMT -5. The time now is 10:21 AM.

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
Open Source Consulting | Domain Registration