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.

2 Responses to “forcing python mode in vim”

  1. 123bacek Says:

    1. This is actually emacs compatible modeline
    2. :help modeline

    :)

  2. olpa Says:

    Aaaaaaa! Exactly! How I could forget the word. Thanks.

Leave a Reply