uncomment a comment block like gcgc in vim-commentary#20
Open
matzebond wants to merge 1 commit intolinktohack:masterfrom
Open
uncomment a comment block like gcgc in vim-commentary#20matzebond wants to merge 1 commit intolinktohack:masterfrom
gcgc in vim-commentary#20matzebond wants to merge 1 commit intolinktohack:masterfrom
Conversation
Owner
|
Thanks @matzebond! I'd like to keep |
|
I would appreciate this feature. I'm more used to the (defun evgeni-commentary-uncomment-adjacent ()
(interactive)
(when (and (eq evil-this-operator 'evil-commentary))
(setq evil-inhibit-operator t)
(let ((beg (evil-commentary/ensure-in-comment-block (point) (point) nil))
(end (evil-commentary/ensure-in-comment-block (point) (point) t)))
(evil-commentary (car beg) (cadr end)))))
(define-key evil-operator-state-map "u" 'evgeni-commentary-uncomment-adjacent)However, it might be a better idea to bind |
Owner
|
Thanks @edkolev, want to give gcgc a try? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I had to modify the regexp your code in #9.
But now it works for me.