When working in the C language, sometimes you have to write multi line macros like the following.
#define SOME_FUNCTION_LIKE_MACRO(a,b) \
foo(a); \
bar(b); \
baz(a+b);
Typically, after a few iterations of editing your code, the backslashes end up unaligned like:
#define SOME_FUNCTION_LIKE_MACRO(a,b) \
foo(a); \
bar(b); \
baz(a+b);
And it drives me crazy. I always end up wasting a lot of time manually aligning them.
Is there a plugin/mapping/function/whatever for automatically aligning the line continuation characters? Something like select lines in visual line mode, hit a key combination and voila, you have aligned backslashes at the end.