[SOLVED] vim does not have syntax highlighting

Archived topics about LMDE 1 and LMDE 2
Locked
bwright1558

[SOLVED] vim does not have syntax highlighting

Post by bwright1558 »

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 LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
anmys

Re: vim does not have syntax highlighting

Post by anmys »

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.
bwright1558

Re: vim does not have syntax highlighting

Post by bwright1558 »

Yes. My system currently has vim, vim-common, vim-runtime, and vim-tiny installed.
bwright1558

Re: [SOLVED] vim does not have syntax highlighting

Post by bwright1558 »

Not sure what went wrong, but I uninstalled then re-installed vim and everything seems to be working now.
tarverator

Re: [SOLVED] vim does not have syntax highlighting

Post by tarverator »

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
Locked

Return to “LMDE Archive”