forcing python mode in vim

To force the python mode for a file, add the following comment at the beginning:

# -*- mode: python -*-

It's also possible to add other options as well. Unfortunately, I don't remember the term for such comment, so I can't find its descrition in the vim documentation.

Vibe code with your voice

Stop fighting speech recognition.
Just talk → fix mistakes later

"... _brings_ hello world"   ❌
          ↓
"... _prints_ hello world"   ✅

Get handsfree.vc on Google Play

Categories: python

Updated: