Reputation: 17422
I want keep my js in this style. I want write a map in vim to do it faster.
from:
var a = x;
var b = y;
var c = z;
to:
var a = x
, b = y
, c = z
;
Upvotes: 3
Views: 4233
Reputation: 392999
My solution in a case like this would be
var
(e.g. {)For info, the Align script has the inverse operation:
var a = x, b = y, c = z;
var a = x;
var b = y;
var c = z;
Upvotes: 0