document updated 17 years ago, on Sep 30, 2007
Modelines in VIM allow individual files to tweak the vim settings. This can be very helpful at
times.
Docs
Tips
- to check whether modeline is enabled, start up Vim, and before changing any settings, run these:
- :set modeline? (should say "modeline" rather than "nomodeline")
- :set modelines? (should not be zero... preferably something like "5")
Examples
- Perl
- HTML
<!-- vim:textwidth=0: -->