[SOLVED] vim does not have syntax highlighting

Questions about applications and software
Forum rules
Before you post please read how to get help

[SOLVED] vim does not have syntax highlighting

Postby bwright1558 on Mon May 21, 2012 11:12 am

I installed vim in LMDE from the terminal using "sudo apt-get install vim". The application appeared to install correctly and it edits files the way it should; however, it does not appear to have syntax highlighting the way it should. I know this because I have used vim in the standard version of Linux Mint. I have already tried using the :syntax on/enabled command in the vim editor, but that does not seem to work correctly, i.e., for java files it only uses a green color to highlight keywords and nothing else.
I am using LMDE 201204 64-bit and the version of vim that I installed is 7.3. I am new to LMDE, but have a fair amount of experience with Linux in general. Any help is greatly appreciated.
Last edited by bwright1558 on Mon May 21, 2012 6:37 pm, edited 1 time in total.
bwright1558
Level 1
Level 1
 
Posts: 3
Joined: Mon May 21, 2012 10:59 am

Linux Mint is funded by ads and donations.
 

Re: vim does not have syntax highlighting

Postby anmys on Mon May 21, 2012 11:27 am

Have you installed vim-runtime? From the description
Code: Select all
$ apt-cache show vim-runtime
Package: vim-runtime
...
Description-en: Vi IMproved - Runtime files
 ...
 This package contains vimtutor and the architecture independent runtime
 files, used, if available, by all vim variants available in Debian.
 Example of such runtime files are: online documentation, rules for
 language-specific syntax highlighting and indentation, color schemes,
 and standard plugins.
...


Regards.
anmys
Level 1
Level 1
 
Posts: 47
Joined: Sat Feb 05, 2011 8:30 pm

Re: vim does not have syntax highlighting

Postby bwright1558 on Mon May 21, 2012 11:43 am

Yes. My system currently has vim, vim-common, vim-runtime, and vim-tiny installed.
bwright1558
Level 1
Level 1
 
Posts: 3
Joined: Mon May 21, 2012 10:59 am

Re: [SOLVED] vim does not have syntax highlighting

Postby bwright1558 on Mon May 21, 2012 6:38 pm

Not sure what went wrong, but I uninstalled then re-installed vim and everything seems to be working now.
bwright1558
Level 1
Level 1
 
Posts: 3
Joined: Mon May 21, 2012 10:59 am

Re: [SOLVED] vim does not have syntax highlighting

Postby tarverator on Wed Sep 12, 2012 10:34 am

FYI, this is how to un-insall and re-install vim, which I just did and it fixed syntax highlighting:

Code: Select all
sudo apt-get remove vim-common
sudo apt-get install vim-common
tarverator
Level 2
Level 2
 
Posts: 63
Joined: Fri Aug 17, 2012 2:43 pm


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 5 guests