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:
  Show dependency tree
 
Reported: 2007-12-18 20:38 UTC by Johannes Schmid
Modified: 2008-01-13 22:38 UTC (History)
1 user (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.