Tuesday, August 9, 2011

Re: colorschemes are not right ... most of the time

Thanks for the helpful replies guys.

I ended up figuring out what was wrong ... yup, the terminal wasn't in 256
colour mode.

Turns out I can put it into 256 colour mode pretty easily from within VIM
simply by using: *set t_Co=256*. This solves the problem straight away. I
guess one of the other colorschemes might have had that included, which is
why it worked after cycling through all the colorschemes.

/However, now I have another question.../ ... after so much stuffing around
with colours and colorschemes, I started building my own colorscheme. I have
2 questions...

*1.* I can't get PHP funcitons to highlight at all. I've tried lots of
different identifiers, Function, phpFunction, phpMethods, etc. but none of
them work. Functions in other languages highlight fine.

*2.* Is there anyway I can tell what "syntax" identifier is used for an
element under the cursor? (so, for example, I can just put the cursor on a
PHP function and somehow find what it's syntax mapping is? There's lots of
different syntax identifiers and I have no idea what they are for e.g.
phpIdentifierComplex, phpIdentifierErratic, etc.

Any help there appreciated.

Thanks.


--
View this message in context: http://vim.1045645.n5.nabble.com/colorschemes-are-not-right-most-of-the-time-tp4677529p4681845.html
Sent from the Vim - General mailing list archive at Nabble.com.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: