vimtricks.wiki Concise Vim tricks, one at a time.

How do you toggle comments in Neovim using Comment.nvim?

Answer

gcc to toggle line

Explanation

Comment.nvim provides gcc to toggle line comments and gc in visual mode for selections. Supports all languages via Tree-sitter.

Next

How do I visually select a double-quoted string including the quotes themselves?