Given the file alfa.c:
// Lorem ipsum dolor sit amet, apeirian constituam interpretaris no his, soluta salutandi persequeris vel ne, facete impedit contentiones te eam. Ut utamur habemus qualisque usu
#include <stdio.h>
int main() {
puts("hello world");
}
I would like to format all long comments to get results like this:
// Lorem ipsum dolor sit amet, apeirian constituam interpretaris no his, soluta salutandi
// persequeris vel ne, facete impedit contentiones te eam. Ut utamur habemus qualisque usu
#include <stdio.h>
int main() {
puts("hello world");
}
I see Vim has an option to format comments, however I did not see any Ex mode commands. Is this possible?