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
MyClass::~MyClass()
{<cursor>

and push enter, the cursor will move one line down and one tab right:
Code: Select all
MyClass::~MyClass()
{
    <cursor>


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() ->
<cursor>


so... :)
how can i make it happen?
vim
 
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.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 28 guests

cron