View previous topic :: View next topic |
Author |
Message |
UnderDog138 n00b
Joined: 03 Dec 2002 Posts: 67 Location: Dallas, TX, USA
|
Posted: Thu Jan 09, 2003 12:17 am Post subject: vim syntax highlighting |
|
|
Is there a plugin for vi/m that allows c/++ syntax highlighting? I know it exists because I used it when I had mandrake ages ago, but I can't find out any information about it. _________________ Adopt an unanswered post today! |
|
Back to top |
|
|
raluke n00b
Joined: 11 Aug 2002 Posts: 56 Location: Maryland, USA
|
Posted: Thu Jan 09, 2003 12:31 am Post subject: |
|
|
Just type ":syn on" and it ought to pick up on the fact that the file is a c++ file. Maybe you should give it a "*.cpp" or ".cxx" extension to give it even more of a clue, but that may not be necessary.
-Robert |
|
Back to top |
|
|
UnderDog138 n00b
Joined: 03 Dec 2002 Posts: 67 Location: Dallas, TX, USA
|
|
Back to top |
|
|
Valen Apprentice
Joined: 18 Aug 2002 Posts: 197 Location: Toronto, Ontario, Canada
|
Posted: Thu Jan 09, 2003 3:10 am Post subject: |
|
|
If you want to for a certain syntax on vim use you can use cpp,pascal,java,sh whatever you like (look in /usr/share/vim/vim***/syntax/ for others). |
|
Back to top |
|
|
|