Skip to content

Make [count]gcc dot-repeatable #125

@kiryph

Description

@kiryph

I have switched from vim-commentary by tpope.

Motivation:

This plugin has native treesitter support for calculating commentstring which works for multiple (injected/embedded) languages like Vue or Markdown.

I miss the possibility to repeat 10gcc with the dot ..

I have found following comment

toggle_current_linewise_op is dot-repeatable whereas toggle_linewise_count is not.

Is it possible to make toggle_linewise_count dot-repeatable as well?

In particular, at the moment the buffer is changed in a suprising way:

hello
world
hello
world

Press on first line 2gcc and then move to third line to press ., you get:

/* hello */
/* world */

ello
world

A line is inserted and a character is removed. This does not feel like it is intended. vim-commentary handles this flawlessly:

/* hello */
/* world */
/* hello */
/* world */

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions