Thread: VIM Question

  1. #1

    VIM Question

    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?

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Could try checking out
    :help syntax
    or
    :help new-filetype

  3. #3
    So, basically I should just RTFM?

  4. #4
    Registered User grady's Avatar
    Join Date
    Oct 2003
    Posts
    27
    So, basically I should just RTFM?
    Yes.... If you do ':syntax on' do you get syntax highlighting?

  5. #5
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. VIM: The (un)official thread
    By MK27 in forum Programming Book and Product Reviews
    Replies: 32
    Last Post: 04-20-2011, 06:43 PM
  2. Pico vs Vi(m) read lock question
    By Overworked_PhD in forum Linux Programming
    Replies: 1
    Last Post: 06-29-2009, 06:38 AM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. VIM Question
    By Thantos in forum Linux Programming
    Replies: 6
    Last Post: 12-10-2003, 11:19 AM
  5. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM