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.
[SOLVED] vim does not have syntax highlighting
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
[SOLVED] vim does not have syntax highlighting
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: vim does not have syntax highlighting
Have you installed vim-runtime? From the description
Regards.
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.
...
Re: vim does not have syntax highlighting
Yes. My system currently has vim, vim-common, vim-runtime, and vim-tiny installed.
Re: [SOLVED] vim does not have syntax highlighting
Not sure what went wrong, but I uninstalled then re-installed vim and everything seems to be working now.
Re: [SOLVED] vim does not have syntax highlighting
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