Click to See Complete Forum and Search --> : Little vi help?


Bad Sector
10-08-2000, 04:25 PM
I'm trying to get syntax highlighting working. When I issue :syntax on, I do get stuff highlighted in gray and white, but no color. Any suggestions? Thanks!

kmj
10-08-2000, 07:41 PM
What terminal are you using? Make sure it supports colors; try using other terminals, and see if you get better results.

Bad Sector
10-08-2000, 09:00 PM
After tinkering for a while, I have been able to get some rather obnoxious colors in xterm, although I'd really like to get it to work from a console/terminal/whatever it is that you call the thing when you hit ctl-alt-F*. (it does support color)

Strike
10-08-2000, 09:49 PM
I use xterms, and here's what I put in my .Xdefaults file to get bigger text and better colors:


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! xterm (and friends)

XTerm*highlightSelection: true
! Uncomment this to use color for the bold attribute
XTerm*VT100*colorBDMode: on
XTerm*VT100*colorBD: blue
! Uncomment this to use color for underline attribute
XTerm.VT100*colorULMode: on
XTerm.VT100*underLine: off
XTerm*VT100*colorUL: magenta
! Uncomment this to display the scrollbar
XTerm*scrollBar: true

! This resource specifies whether or not to ignore the 'alternate screen'
! of applications such as vi. When it is on, these applications will restore
! the contents of the screen when they are exited to what they were before
! they were started. When it is off, the contents of vi will remain on the
! screen after the program is quit.
XTerm.VT100.titeInhibit: true

! Uncomment this to turn off color mode in your xterms
!XTerm.VT100*colorMode: off
XTerm.VT100*dynamicColors: on

! Number of lines of scrollback to save
XTerm*saveLines: 1500

xterm*reverseWrap: true

*visualBell: true
*scrollTtyOutput: False
*scrollKey: True
Scrollbar.JumpCursor: True
rderColor: white

! Color defaults
XTerm*color0: Black
XTerm*color1: Red
XTerm*color2: Green
XTerm*color3: Yellow
XTerm*color4: Blue
XTerm*color5: Magenta
XTerm*color6: Cyan
XTerm*color7: White
XTerm*colorBD: White
XTerm*colorBD: White
XTerm*colorUL: Cyan
XTerm*foreground: White
XTerm*background: Black
XTerm*font: 9x15bold
! XTerm*color0: #000000
! XTerm*color1: #c00000
! XTerm*color2: #008000
! XTerm*color3: #808000
! XTerm*color4: #0000c0
! XTerm*color5: #c000c0
! XTerm*color6: #008080
! XTerm*color7: #c0c0c0
! XTerm*color8: #808080
! XTerm*color9: #ff6060
! XTerm*color10: #00ff00
! XTerm*color11: #ffff00
! XTerm*color12: #8080ff
! XTerm*color13: #ff40ff
! XTerm*color14: #00ffff
! XTerm*color15: #ffffff
! Xterm*cursorColor: Black

! Vi iMproved
Vim*useSchemes: all
Vim*sgiMode: true
!Vim*useEnhancedFSB: true
Vim.foreground: Yellow
Vim.background: Black
Vim.boldColor: Blue
Vim.italicColor: Magenta
Vim.underlineColor: Brown
Vim.cursorColor: DarkGreen
Vim*font: -adobe-courier-bold-r-normal-*-14-100-100-*-m-90-iso8859-1
Vim*menuBar*font:
-adobe-courier-bold-r-normal-*-14-100-100-*-m-90-iso8859-1
Vim*scrollbarWidth: 20

And I use the default coloring for the syntax files, and it looks great.

Bad Sector
10-08-2000, 10:13 PM
Any suggestions as to how to get it working from the console, though?

Bad Sector
10-08-2000, 10:42 PM
Never mind. I used your file, Strike, and that is pretty nice. I'll be content with that http://www.linuxnewbie.org/ubb/smile.gif Thanks for your help!

Strike
10-08-2000, 11:30 PM
No problem, I stole it from a co-worker this summer anyway http://www.linuxnewbie.org/ubb/smile.gif

Darth Tminos
10-09-2000, 12:53 AM
To solve your problem, start by issuing the command "emacs" and go from there...

Bad Sector
10-09-2000, 01:07 AM
Originally posted by Darth Tminos:
To solve your problem, start by issuing the command "emacs" and go from there...

lol
To tell the truth, that did cross my mind. http://www.linuxnewbie.org/ubb/smile.gif Just prefer vi since I'm already familiar with it. Someday I'll learn emacs...