mirror of
https://github.com/junegunn/vim-easy-align.git
synced 2025-11-12 03:43:48 -05:00
22 lines
454 B
Plaintext
22 lines
454 B
Plaintext
Given (Table):
|
|
|a|b|c|d|
|
|
| -|-|>-|-|
|
|
|aaa|bbb|ccc|ddd|
|
|
|
|
Do (Partial alignment around 1st |):
|
|
\<C-V>ljj\<Enter>|
|
|
|
|
Expect (Right margin should be correctly attached):
|
|
| a|b|c|d|
|
|
| -|-|>-|-|
|
|
| aaa|bbb|ccc|ddd|
|
|
|
|
Given (empty buffer):
|
|
|
|
Execute (Aligning lines with many delimiters should not fail):
|
|
call visualmode(1)
|
|
call setline(1, repeat('|', &maxfuncdepth + 1))
|
|
%EasyAlign*|
|
|
AssertEqual (&maxfuncdepth + 1) * 3 - 2, len(getline(1))
|
|
|