Skip navigation.
Half-baked opinions, served lukewarm.
matthew's picture

syntax highlighting

Try adding these lines to your $HOME/.vimrc file (this varies according to installation, the easiest way is to just do "vi ~/.vimrc" from a cygwin shell):

"turn on syntax highlighting
:syntax on

Now it's possible that vim may not recognize your terminal type. In order to work around this (like if syntax highlighting won't turn on from this one addition to your .vimrc), then try adding these to your ~/.vimrc:

"fix inability to read term type
:set term=xterm-color

--
Matthew P. Barnson

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <b> <i> <li> <ol> <ul> <p> <pre> <br> <blockquote> <hr> <img> <h1> <h2> <h3> <strong> <font> <div>
  • Web and e-mail addresses are automatically converted into links.
  • Lines and paragraphs break automatically.
More information about formatting options Captcha Image: you will need to recognize the text in it.
Please type in the letters/numbers that are shown in the image above.