junegunn / vim-easy-align

:sunflower: A Vim alignment plugin
4.12k stars 120 forks source link

Alignement fails when digraph character used as pattern #148

Open marcastel opened 3 years ago

marcastel commented 3 years ago

Vim-align-easy and Vim digraphs (he digraph) apparently don't cohabitate well together. Any idea how to fix this?

Admit you want to align the following on the character which is a digraph obtained in Vim by typing - BS >.

https://github.com/jesseduffield/lazygit (Go) → build OK
https://github.com/tstack/lnav (C++) → build OK

You would normally type g a i p - BS >. I presume that the backspace key gets intercepted too early and consequently an error is raised:

:EasyAlign (_) (Unknown delimiter key: >)

Happy to hear if I did something wrong or if there is a workaround :-)