Align End Of Line Comments in Vim?

前端 未结 3 876
春和景丽
春和景丽 2020-12-15 22:30

Inside Vim, is there a formatting command that would align a block of end of line comments?

For example in C++, it would turn this:

m_varName1;   //          


        
3条回答
  •  青春惊慌失措
    2020-12-15 22:53

    I have had a similar problem today where I wanted to align on a whitespace in a certain position. Just wrote a blog post about how I did it with the Align plugin.

提交回复
热议问题