Fork me on GitHub
#vim
<
2021-11-15
>
Ngoc Khuat04:11:45

Hi again ^^, What do you use to auto align let binding or dict?

1
harryvederci15:11:52

I'm still doing it manually, very interested in finding out how to automate that as well!

Ngoc Khuat03:11:46

curious if @UJY23QLS1 have a solution for this?

walterl18:11:29

https://github.com/junegunn/vim-easy-align can do it, but it's a bit finicky: from the left-most column of the first line inside your let bindings vector, do: • <C-v> • select lines down • select to end of line with $<CR><Space>

walterl18:11:26

Easier movements like vi] don't work. Presumably the leading spaces in lines 2 onward, confuse it 🤷

harryvederci18:11:15

Thanks! Will check it out ASAP 😃