After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 504331 - Support for Vim Modelines
Support for Vim Modelines
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: language-support-c-cpp-java
SVN TRUNK
Other Linux
: Normal enhancement
: ---
Assigned To: Anjuta maintainers
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2007-12-18 20:38 UTC by Johannes Schmid
Modified: 2008-01-13 22:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Johannes Schmid 2007-12-18 20:38:53 UTC
Anjuta does already support Emacs modelines but we should also support Vim modelines.
Comment 1 Johannes Schmid 2007-12-23 18:43:47 UTC
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.
Comment 2 Thomas Wood 2007-12-24 16:20:57 UTC
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").
Comment 3 Johannes Schmid 2007-12-24 23:26:25 UTC
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! 
Comment 4 Johannes Schmid 2008-01-13 22:38:45 UTC
Closing this bug report now. Feel free to reopen if you miss a modeline feature that you feel should be supported.