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; //
The tabular.vim plugin should be able to do this. Select them visually, and align them with
:Tabularize /\/\/
Use the Align plugin for Vim to align based on whatever separator(s) you choose.
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.