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.
August 23rd, 2006 at 5:22 am
1. This is actually emacs compatible modeline
2. :help modeline
:)
August 23rd, 2006 at 5:44 am
Aaaaaaa! Exactly! How I could forget the word. Thanks.