Teen Programmers Unite  
 

 

Return to forum top

vi colors

Posted by 142857 [send private reply] at January 03, 2003, 07:40:23 PM

Hi. I'm using vi (vim, actually) and when I'm in C mode, it makes everything into different colors (like keywords, comments, etc.) to try to help me. But the colors are annoying and make it hard to read. How can I turn them off? Thanks

Posted by pramod [send private reply] at January 10, 2003, 12:48:06 PM

good, i have no idea about vim and its stupid colours. ive noticed them too but, and yes they're impossible to read.

but thing that got me here was 142857 is the repeating block that you get when you do 1/7. now look at the fun.

2/7 = 285714 285714 285714 ...
3/7 = 428571 428571 428571 ...
4/7 = 571428 571428 571428 ...
5/7 = 714285 714285 714285 ...
6/7 = 857142 857142 857142 ..

notice anything? the numbers are always in the order 142857. you can use that to get exact results very fast when you're dividing by 7.

[ok thats a lot of bullshit, but what the hell, tell me one thing that is not a lot of bullshit]

Posted by 142857 [send private reply] at January 10, 2003, 07:12:49 PM

yes, I know! That's why I picked 142857. Isn't it great?

Posted by 142857 [send private reply] at January 10, 2003, 07:17:18 PM

...I'm so happy someone noticed. Well, maybe you others noticed, but you didn't mention it

Posted by buzgub [send private reply] at January 10, 2003, 08:09:04 PM

The vim command you want is
":syntax off"

Put that line in your .vimrc to kill them permanently.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.