Sponsored Content
Full Discussion: Vim not working for colors
Top Forums UNIX for Dummies Questions & Answers Vim not working for colors Post 302760449 by mgpatil31 on Thursday 24th of January 2013 04:51:58 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
VIMTUTOR(1)						      General Commands Manual						       VIMTUTOR(1)

NAME
vimtutor - the Vim tutor SYNOPSIS
vimtutor [-g] [language] DESCRIPTION
Vimtutor starts the Vim tutor. It copies the tutor file first, so that it can be modified without changing the original file. The Vimtutor is useful for people that want to learn their first Vim commands. The optional argument -g starts vimtutor with gvim rather than vim, if the GUI version of vim is available, or falls back to Vim if gvim is not found. The optional [language] argument is the two-letter name of a language, like "it" or "es". If the [language] argument is missing, the lan- guage of the current locale will be used. If a tutor in this language is available, it will be used. Otherwise the English version will be used. Vim is always started in Vi compatible mode. FILES
/usr/share/vim/vim72/tutor/tutor[.language] The Vimtutor text file(s). /usr/share/vim/vim72/tutor/tutor.vim The Vim script used to copy the Vimtutor text file. AUTHOR
The Vimtutor was originally written for Vi by Michael C. Pierce and Robert K. Ware, Colorado School of Mines using ideas supplied by Charles Smith, Colorado State University. E-mail: bware@mines.colorado.edu. It was modified for Vim by Bram Moolenaar. For the names of the translators see the tutor files. SEE ALSO
vim(1) ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWvim | +--------------------+-----------------+ |Interface Stability | Uncommitted | +--------------------+-----------------+ NOTES
Source for vim is available on http://opensolaris.org. 2001 April 2 VIMTUTOR(1)
All times are GMT -4. The time now is 10:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy