junegunn/vim-easy-align

Alignment doesn't work on hyphens in C++ comments

kshenoy opened this issue · 2 comments

Steps to reproduce:

  1. Open vim
  2. set ft=cpp
  3. Paste the following:

// Lorem- ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
// tempor- invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
// vero eos- et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
// no sea- takimata sanctus est Lorem ipsum dolor sit amet.

  1. Run gaip<C-X>-<CR>

It doesn't align.

However, if I do the same thing after deleting the comment symbols, it aligns on the hyphen

This worked: gaip<C-G><C-X>-<CR>

Thank you for the extensive documentation :)