zopencommunity / vimport

Utility for managing virtual file systems
3 stars 4 forks source link

turning syntax on does not give colors #9

Closed MikeFultonDev closed 2 years ago

MikeFultonDev commented 2 years ago

:syntax on provides underline / bold but no colors Is this a bug? Google seems to indicate that's all that is needed... @IgorTodorovskiIBM

IgorTodorovskiIBM commented 2 years ago

What is your TERM set to? I have it set to TERM=xterm

IgorTodorovskiIBM commented 2 years ago

Ok, I think you need this in your .vimrc:

syntax on
set t_Co=8
set t_Sf=^[[3%p1%dm
set t_Sb=^[[4%p1%dm

Just tried t_Co=256 as well, which looks nicer

IgorTodorovskiIBM commented 2 years ago

I think we can change the defaults for these in the code

MikeFultonDev commented 2 years ago

Sounds good

MikeFultonDev commented 2 years ago

I also had xterm

MikeFultonDev commented 2 years ago

@IgorTodorovskiIBM those set commands didn't work for me. Can I cut'n'paste those or are they some sort of escape sequence?

MikeFultonDev commented 2 years ago

now that ncurses is exporting TERMINFO, I am able to get this to work!