VIM Question

This is a discussion on VIM Question within the Tech Board forums, part of the Community Boards category; For some reason, VIM does detect that .cpp files are for C++ (syntax highlighting). Is there another format that it ...

  1. #1
    Banned
    Join Date
    Dec 2003
    Posts
    367

    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
    21,310
    Could try checking out
    :help syntax
    or
    :help new-filetype

  3. #3
    Banned
    Join Date
    Dec 2003
    Posts
    367
    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
    Banned
    Join Date
    Dec 2003
    Posts
    367
    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, 10:19 AM
  5. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21