Results 1 to 4 of 4

Thread: No syntax highlighting in vim

  1. #1
    Join Date
    Oct 2009
    Location
    Dhaka,Bangladesh
    Posts
    251

    Question No syntax highlighting in vim

    syntax on , is in ~/.vim file but still not syntax higlighting in vim a.cpp.Why?

  2. #2

    Default Re: No syntax highlighting in vim

    Quote Originally Posted by colao View Post
    syntax on , is in ~/.vim file but still not syntax higlighting in vim a.cpp.Why?
    What is the filetype set to when you open a cpp file. Are you looking for syntax highlighting when you create a .cpp file from new file, If yes, the reload the file (open it once again). Id the VIM setup correct. are cpp syntax files present. Check if cpp.vim is present in either /usr/share/vim/vim72/syntax or $HOME/.vim/syntax.
    --
    Vivek Bhat
    Linux User #496540
    Dell 620 S Desktop, 8GB, Intel(R) Core(TM) i5-2310 CPU @ 2.90GHz, openSuSE Leap 42.1
    +Plasma 5, Kernel 4.1.20-11-default x86_64

  3. #3
    Join Date
    Oct 2009
    Location
    Dhaka,Bangladesh
    Posts
    251

    Default Re: No syntax highlighting in vim

    zypper in vim-data did the trick.

  4. #4

    Default Re: No syntax highlighting in vim

    Quote Originally Posted by colao View Post
    zypper in vim-data did the trick.
    Great...
    --
    Vivek Bhat
    Linux User #496540
    Dell 620 S Desktop, 8GB, Intel(R) Core(TM) i5-2310 CPU @ 2.90GHz, openSuSE Leap 42.1
    +Plasma 5, Kernel 4.1.20-11-default x86_64

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •