AIXThis 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.
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.
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:
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
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.