Home Download Buy Blog Forum Support

smart indentation

smart indentation

Postby vim on Wed Oct 01, 2008 9:53 am

How do i set the behavior which cause the editor to use smart indentation when i compose code?

for example if i write the following c++ code:
Code: Select all

and push enter, the cursor will move one line down and one tab right:
Code: Select all

but, when i compose Erlang code, i don't get that behavior, for example:
Code: Select all
my_func() -> <cursor>

and when i push enter:
Code: Select all
my_func() ->

so... :)
how can i make it happen?
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: smart indentation

Postby jps on Mon Oct 06, 2008 9:11 pm

Smart indentation isn't configurable yet, unfortunately :(

The TM syntax format does include rules to specify indentation, it's on the todo list to implement.
Site Admin
Posts: 3217
Joined: Wed Mar 19, 2008 12:33 pm

Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 27 guests