vim modelines
So that Robin and I never again forget what the little bastards are called.. The syntactic sugar in source files requried for vim to be ‘just the way you like it’ isn’t called “magic comments" or “vim source configure" or any other search combination that leads to repeated head-meeting-brick incidents when trying to remember what they are. They’re called modelines (:help modeline
)
An example modeline that works for Python would be:
#!/usr/bin/python<br />
# vim: ai sm tw=0 sw=4 ts=4<br />
Subscribe via RSS