GNOME Bugzilla – Bug 504331
Support for Vim Modelines
Last modified: 2008-01-13 22:38:45 UTC
Anjuta does already support Emacs modelines but we should also support Vim modelines.
There is basic support for the commands: - [no]expand - shiftwidth - softtabwidth now, but I am not sure if that is enough to support most files with such modelines.
I presume you mean "softtabstop", not "softtabwidth". "tabstop" itself should also be easy to implement. It would be worth making sure the shortened versions are also supported (i.e. "sw", "sts" and "ts").
OK, added support for sw, sts, ts (and tabstop) as well as for et and noet. Probably the behaviour of sts and ts does not match 100% to what vim does but it should at least not corrupt the file. Thanks for testing!
Closing this bug report now. Feel free to reopen if you miss a modeline feature that you feel should be supported.