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

Commenting out the whole block, including blank lines #77

Open
pag opened this issue Sep 19, 2016 · 5 comments
Open

Commenting out the whole block, including blank lines #77

pag opened this issue Sep 19, 2016 · 5 comments

Comments

@pag
Copy link

pag commented Sep 19, 2016

When selecting

foo

bar

and commenting the result is

# foo

# bar

It would be nice if the blank line were commented too, or if vim-commentary could be configured that way. The use case is that when there are multiple blocks of commented code near each other it's much easier to distinguish each block if the leading column is the comment character for the full extent.

@jakykong
Copy link

jakykong commented Oct 4, 2016

I concur - even if it is optional/separate commands, this would be very helpful.

@jhclouse
Copy link

I would like to see this too.

@snahor
Copy link

snahor commented Mar 2, 2017

@tpope would you accept a pr for this?

@pag
Copy link
Author

pag commented Mar 27, 2017

@snahor do you have a patch? I want to apply to a local fork given the maintainer's lack of interest but I find parts of the script impenetrable.

@tpope
Copy link
Owner

tpope commented Apr 21, 2017

In hindsight this might have been the better choice, but it gets weird when it comes to that extra space we add after the comment character. I am thinking maybe in 2.0 we drop the space, which would be a natural time to address this.

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

No branches or pull requests

5 participants