For some reason, VIM does detect that .cpp files are for C++ (syntax highlighting). Is there another format that it uses instead? Maybe cc or cxx?
For some reason, VIM does detect that .cpp files are for C++ (syntax highlighting). Is there another format that it uses instead? Maybe cc or cxx?
Could try checking out
:help syntax
or
:help new-filetype
So, basically I should just RTFM?
Yes.... If you do ':syntax on' do you get syntax highlighting?So, basically I should just RTFM?
docs: how to ask | OpenGL | Xlib | IA32 | assembly | server | pthreads | sockets
tricks: sqrt | complex mul | pow | polynomial
philosophy: dictionary | uncleal | maddox | bible
Yes, but when I start a new file, and then save it as a cpp file, it doesn't do the syntax highlighting. It only works when I load up files.