Alignment doesn't work on hyphens in C++ comments
kshenoy opened this issue · 2 comments
kshenoy commented
Steps to reproduce:
- Open vim
set ft=cpp
- 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.
- 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
junegunn commented
kshenoy commented
This worked: gaip<C-G><C-X>-<CR>
Thank you for the extensive documentation :)