this post was submitted on 13 Jul 2023
2 points (100.0% liked)

Vim

90 readers
2 users here now

Vim, the powerful modal editor!

founded 1 year ago
MODERATORS
 

Hello!

I'm having an issue in Vim where it will not do syntax highlighting unless using hard tabs. I prefer hard tabs, but they aren't valid yaml and I get yelled at when I try and import the file in python.

With proper spaces

With hard tabs

Does anyone know how I can resolve this?

Thanks!

EDIT: This is confusing. I've just discovered that if I run set ft? it shows filetype=yaml. If I then run set ft=yaml the syntax highlighting works correctly??? That doesn't make any sense.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here