Vim: Toggle Comments (any language)

The easiest way is to get NERDCommenter:

Plug 'preservim/nerdcommenter'
:PlugInstall

and use <leader>c<space> to toggle comments.

By default <leader> is backspace (\).

Have a question⁉ Contact me.


vim

22 Words

2021-09-20