How to make syntax highlighting work in Vim?

174 views
Skip to first unread message

Renato Silva

unread,
Jun 14, 2013, 10:58:34 PM6/14/13
to mintty-...@googlegroups.com
How to make syntax highlighting work in Vim? It only shows underlines, no colors. It works properly when using cmd.exe, but not MinTTY.

Thanks in advance.

Renato Silva

unread,
Jun 14, 2013, 11:06:12 PM6/14/13
to mintty-...@googlegroups.com
Sample screenshot with a patch file:

Imagem inline 1

Now when using cmd.exe:

Imagem inline 2

2013/6/14 Renato Silva <br.rena...@gmail.com>
How to make syntax highlighting work in Vim? It only shows underlines, no colors. It works properly when using cmd.exe, but not MinTTY.

Thanks in advance.

--
You received this message because you are subscribed to a topic in the Google Groups "mintty" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mintty-discuss/kFX06Zoyq_s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mintty-discus...@googlegroups.com.
To post to this group, send email to mintty-...@googlegroups.com.
Visit this group at http://groups.google.com/group/mintty-discuss.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

2.png
1.png

Renato Silva

unread,
Jun 20, 2013, 6:49:04 PM6/20/13
to mintty-...@googlegroups.com
Just found the solution in another post. Adding this to ~/.vimrc works:

let &t_Co=256
let &t_AF="\e[38;5;%dm"
let &t_AB="\e[48;5;%dm"


2013/6/15 Renato Silva <br.rena...@gmail.com>
1.png
2.png
Reply all
Reply to author
Forward
0 new messages