LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 05-08-2006, 04:08 AM   #1
rajeev1982
LQ Newbie
 
Registered: Apr 2006
Location: India
Distribution: Fedora Core 5
Posts: 13
Thanked: 0
Question no colors in vim on command line


[Log in to get rid of this advertisement]
Hi All,
I am using vim 6.3 on AIX 5.2, I can see the colors in ls command and other command, but when I run the vi there are no colors in that. when i run the command 'vi -g' it opens an X window and stats showing the colors. pleaes help me... I also have tried export TERM=xterm-color, but no luck. please anybody help me in this.
rajeev1982 is offline  
Tag This Post ,
Reply With Quote
Old 05-09-2006, 01:53 PM   #2
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,363
Thanked: 10
Did you try to enable syntax highlighting? Go into command mode and type "syntax on". If that does not work, you maybe don't have any default colors for vim. You may add color to your /pathtovim/vim63/colors (just a guess). You can download a color sample from here:

http://www.vim.org/scripts/download_...hp?src_id=4010
Mega Man X is offline     Reply With Quote
Old 05-10-2006, 12:25 AM   #3
rajeev1982
LQ Newbie
 
Registered: Apr 2006
Location: India
Distribution: Fedora Core 5
Posts: 13
Thanked: 0

Original Poster
Hi Mega Man X,
I can see the colors now, I have added the folowing lines to my .vimrc file.

if &term =~ "xterm"
if has("terminfo")
set t_Co=8
set t_Sf=^[[3%p1%dm
set t_Sb=^[[4%p1%dm
else
set t_Co=8
set t_Sf=^[[3%dm
set t_Sb=^[[4%dm
endif
endif

" where ^[ is actual <Ctrl-V> + <Esc>.
rajeev1982 is offline     Reply With Quote
Old 06-04-2009, 04:39 AM   #4
mezhaka
LQ Newbie
 
Registered: Jun 2009
Posts: 1
Thanked: 0
Quote:
Originally Posted by rajeev1982 View Post
Hi Mega Man X,
I can see the colors now, I have added the folowing lines to my .vimrc file.

if &term =~ "xterm"
if has("terminfo")
set t_Co=8
set t_Sf=^[[3%p1%dm
set t_Sb=^[[4%p1%dm
else
set t_Co=8
set t_Sf=^[[3%dm
set t_Sb=^[[4%dm
endif
endif

" where ^[ is actual <Ctrl-V> + <Esc>.
thanks a lot -- this has worked out for me. may be you can briefly comment on the meaning if this code snipet?
mezhaka is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
vim colors Erik Thorsson Debian 1 02-09-2005 10:38 AM
Switching off line number colors on vi or vim raees Linux - Software 4 04-21-2004 08:31 AM
vim 'n' lynx: command line option to search for string Samsara Linux - Software 4 08-24-2003 12:52 PM
Command line Colors? TikRu Linux - General 1 03-12-2002 08:10 AM
Command Line Graphics and Colors tony Programming 1 11-21-2000 01:28 PM


All times are GMT -5. The time now is 03:30 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration