AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-08-2006, 03:08 AM
|
#1
|
|
LQ Newbie
Registered: Apr 2006
Location: India
Distribution: Fedora Core 5
Posts: 13
Rep:
|
no colors in vim on command line
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.
|
|
|
|
05-09-2006, 12:53 PM
|
#2
|
|
Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339
Rep:
|
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
|
|
|
|
05-09-2006, 11:25 PM
|
#3
|
|
LQ Newbie
Registered: Apr 2006
Location: India
Distribution: Fedora Core 5
Posts: 13
Original Poster
Rep:
|
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>.
|
|
|
|
06-04-2009, 03:39 AM
|
#4
|
|
LQ Newbie
Registered: Jun 2009
Posts: 1
Rep:
|
Quote:
Originally Posted by rajeev1982
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?
|
|
|
|
09-12-2012, 02:01 PM
|
#5
|
|
LQ Newbie
Registered: Jun 2008
Posts: 7
Rep:
|
You can also simply append "syntax on" to the .vimrc file and it will enable syntax highlighting with one line.
wow just realized this is a super old thread. Hopefully the info will still help anyone else who is searching for this solution like I was.
Last edited by grantwnorman; 09-12-2012 at 02:03 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:35 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|