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

How to get the old multiCommentedLines? #84

Closed
1 task done
sahinakkaya opened this issue May 16, 2024 · 3 comments
Closed
1 task done

How to get the old multiCommentedLines? #84

sahinakkaya opened this issue May 16, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@sahinakkaya
Copy link

Bug Description

82b4333 removes gc text object saying it is default in nvim 0.10. I checked the :h news and didn't understand how I can make use of this default feature. Maybe someone can help?

Relevant Screenshot

No response

Reproduction & Sample Text

.

neovim version

0.10.0

Make sure you have done the following

  • I have updated to the latest version of the plugin.
@sahinakkaya sahinakkaya added the bug Something isn't working label May 16, 2024
@chrisgrieser
Copy link
Owner

From nvim 0.10 on, there is a gc textobject which pretty much does what multiCommentedLines did: https://neovim.io/doc/user/various.html#o_gc

So if you used gc as mapping, it will work out of the box, if you used a different mapping, you have to remap it to gc.

@chrisgrieser chrisgrieser closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
@chrisgrieser chrisgrieser pinned this issue May 17, 2024
@sahinakkaya
Copy link
Author

Oh, it only works in operator pending mode. I was trying to select the multicommented lines with vgc and it wasn't working. Thanks for pointing to the documentation.

@chrisgrieser
Copy link
Owner

FYI for anyone looking for the using multiline comments in visual mode, see this comment: #93 (comment)

@chrisgrieser chrisgrieser changed the title [Question]: How do I get the old behaviour for multiline comments? How to get the old multiCommentedLines? Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants