1

Re: automatic flag indentation.

Hello,

Is it possible to make viemu to perform a flag indentation when pressing the '=' key instead of using the default VS indentation style?

Thank you,
Jenya

2

Re: automatic flag indentation.

Hi Jenya,

What is a "flag indentation"? Sorry I don't identify readily what you mean. You can probably achieve it with mappings (:vnoremap = ..., :nnoremap == ..., etc...)

Regards,

  -- Jon

3

Re: automatic flag indentation.

Thank you for responding,

For example:
void foo(int a,
             MyClass const& b,
             someOtherClass const& c,
             double d)
{
}

As you can see, all arguments in the foo's signature are alligned on the left side. Sometimes that is called a flag indentation because it looks like arguments are attached to a flag pole on the left side.


Jenya

4

Re: automatic flag indentation.

Thanks Jenya for the explanation. Now I understand. Unfortunately, ViEmu just uses VS's internal reindentation mechanism for ==, so it doesn't support that kind of thing. If you write a VS macro to do that somehow, you can map == to the macro like this:

  :nnoremap == :vsc MyMacros.MyMacro<return>

And that would be a way to invoke it within the framework of ViEmu. Providing reformatters is quite complex functionality, and is unfortunately out of scope for ViEmu.

Regards,

  -- Jon