Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement smart formatting of comments #970

Closed
hollasch opened this issue Sep 12, 2012 · 6 comments
Closed

Implement smart formatting of comments #970

hollasch opened this issue Sep 12, 2012 · 6 comments

Comments

@hollasch
Copy link

I suppose that this is a backburner sort of item, but I really miss the smart formatting in Vim. For example, entering text in a // comment will not only wrap the line, but will also prepend the line with the appropriate comment syntax. It's also really handy when changing a paragraph comment, as you can use 'gqap' to reflow and recomment the entire paragraph.

Perhaps a limited solution (like gqap, or just insert-mode wrapping) is feasible.

@jaredpar
Copy link
Collaborator

Yeah it is nice to have that. I'll see if I can squeeze it into the next major release.

@rywang
Copy link

rywang commented Nov 15, 2012

I'd like to second the request by @hollasch

gqap is something I use all the time, and something smarter than that for comments would be even better.

Thanks @jaredpar for this awesome plugin.

@jaredpar jaredpar modified the milestones: 1.8.1, 2.1.0 Jul 20, 2015
@jcredland
Copy link

This would be amazing.
:)

@ricksladkey
Copy link
Collaborator

The gq half of this request was implemented in PR #2274.

@ricksladkey
Copy link
Collaborator

The other half of this request is the c, r and o options of formatoptions (see vim :help fo-table).

@ricksladkey
Copy link
Collaborator

It turns out this is a duplicate of the older issue #573.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants