Vim not working for colors


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Vim not working for colors
# 1  
Old 01-24-2013
Hammer & Screwdriver [Solved] Vim not working for colors

Hi,
I want to use vim but after opening any files, it is not showing comments, syntax in different colors.

Below are the details:
Vim is installed on below location:
/usr/local/share/vim/vim72/
Vim binary is present on below location:
/usr/local/bin/vim

I have created .vimrc file with below contents
syntax on
colors ron

Could you please suggest if I need to make any kind of setting in my local profile so I can see text in different colors.

---------- Post updated at 03:21 PM ---------- Previous update was at 02:54 PM ----------

My issue is resolved by below.

Created below entries in .vimrc file
Code:
PATH=${PATH}:/usr/local/bin/vim
VIMRUNTIME=/usr/local/share/vim/vim72/
TETRM=xterm
term=xterm

Created below entries into .vimrc file
Code:
" for vim in term set coloring
set term=xtermc
"colorscheme darkblue
colorscheme ron
" Turn on color
syntax on
set background=dark
" Highlight searches
set hlsearch
set incsearch


Last edited by vbe; 01-24-2013 at 09:06 AM.. Reason: code tags
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Colors not being Interpreted

Hello, I am having an issue with ANSI colors in Redhat linux. I am running a script where the colours have been set very early on as follows: # Reset Color_Off='\033 Later in the script these are used to color define sections of output by reffering to them using: ${White} blah blah blah... (4 Replies)
Discussion started by: Pedro72
4 Replies

2. Shell Programming and Scripting

E363 ERROR working with VIM

When i try to edit the byte size file in vim editor iam getting the following error message(OS IBM AIX5.3) E363: pattern caused out-of-stack error Anyone know how to overcome this ?. (1 Reply)
Discussion started by: mr_manii
1 Replies

3. Solaris

Very Importan - Vim Settings - Error while opening a File using vim

I downloaded vim.7.2 and compiled the vim source . Added the vim binary path to PATH (Because iam not the root of the box) when i load the file using vim it throws me an error Error detected while processing /home2/e3003091/.vimrc: line 2: E185: Cannot find color scheme darkblue line... (0 Replies)
Discussion started by: girija
0 Replies

4. HP-UX

Vim colors in HP-UX

I am using xterm on my HP-UX system (11i). Color is working in xtrem, i can see that with the -color option on ls. When I use vim's syntax high lighting, instead of colors, it uses underline and bold (which looks horrible). I added the following if &term =~ "xterm" if has("terminfo") ... (2 Replies)
Discussion started by: kheisler
2 Replies

5. Shell Programming and Scripting

using colors in mailx

I want to use notify_fail () { echo " " >> ${MSG} echo " Script failed n">> ${MSG} cat ${MSG}|mailx -s "t1.ksh Success: "name@domain.com" exit 1 } I want script failed to show in Red or different colors in the email that i sent to name@domain.com I serached several sites and also... (1 Reply)
Discussion started by: konark
1 Replies

6. UNIX for Dummies Questions & Answers

Colors

Is there a way with the bourne shell to have different types of files show up a different color when you do ls? (1 Reply)
Discussion started by: resullivan
1 Replies

7. UNIX for Dummies Questions & Answers

Directory colors

Hey guys, When I used a Solaris box way back I had directory, file , symbolic link colors, etc... I can't seem to find the .dircolors file and how i set it up for bash on Solaris... anyone remember how to do it? Thanks! (2 Replies)
Discussion started by: kingdbag
2 Replies

8. Linux

linux colors

what dog gone file is setting these colors! i dont see it in bashrc or bash_profile!! anyone know? alias cp='cp -i' alias l.='ls -d .* --color=tty' alias ll='ls -l --color=tty' alias ls='ls --color=tty' alias mv='mv -i' alias rm='rm -i' alias vi='vim' alias which='alias | /usr/bin/which... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

9. UNIX Desktop Questions & Answers

colors

Hello, I am somewhat new to linux. I just installed Red Hat 7.2 and when I try to load gnome or KDE in colors above 8bit it will kind of lock up and display some wierd scrambled cable look. I have an ATI Radeon 7000. I check out my monitor settings they are fine. Is it the graphics card? I set my... (1 Reply)
Discussion started by: Sage3k
1 Replies

10. UNIX Desktop Questions & Answers

xterm colors

I'm a new user to unix and I want to be able to pick and choose different xterm colors via 3rd botton menu. I'm currently pico'd into my .fvwm2rc file and this is what I have under my bottons: Please advise ############ # Button 1 #... (2 Replies)
Discussion started by: blica777
2 Replies
Login or Register to Ask a Question