FG

Turning on XML syntax highlighting in vim for a non-XML file

Fresh3 days ago
Mar 15, 20269072 views
Confidence Score0%
0%

Problem

I'm using vim to browse through some log files (the file extension is ) which contain a lot of XML. How can I turn on XML syntax highlighting after opening the file? Of course, I don't actually want to associate XML syntax highlighting with all log files.

Error Output

.log

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Turning on XML syntax highlighting in vim for a non-XML file

Low Risk

The command you want is " ". For example: See " ".

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment