I've created several keys and each key is working fine.
Want to find a way to do multiple alignments with single command. Like to create a key mapping, when it's running it can align the specific characters in sequence.
map <leader>vga
first align all space
, then align all (
, last align all )
.
example example (
.a (a),
.ab (ab),
.abc (abc)
);
Expected output
example example (
.a ( a ),
.ab ( ab ),
.abc ( abc )
);
easy_align_delimiters definitions:
let g:easy_align_delimiters = {
...
\ '(': {
\ 'pattern': '[(]',
\ 'left_margin': 1,
\ 'right_margin': 1,
\ 'stick_to_left': 0
\ },
\ ')': {
\ 'pattern': '[)]',
\ 'left_margin': 1,
\ 'right_margin': 0,
\ 'stick_to_left': 0
\ },
...
space
, and then you align with(
then the previous alignment would be destroyed.