DEV Community

Diego Perozo
Diego Perozo

Posted on

vim-real-commenter

Resume

I make a new plugin, this time it is to make code comments like vscode, it supports 75 languages.

Image description

Install

You can add this plugin to your vim cloning my repo:
https://github.com/dapt4/vim-real-commenter

Or using a Plugin manager like:

"NeoBundle
NeoBundle 'dapt4/vim-real-commenter'

"or VimPlug
Plug 'dapt4/vim-real-commenter'

:source %
:NeoBundleInstall
"or
:source %
:PlugInstall

Mappings

This plugin must be mapped for works, it is recommended:
noremap :call SetComment(0)
vnoremap : call SetComment(1)

Usage

Just go to the desired line and use your mapped keys, you can make a visual select and it will work correctly

[source-code]: https://github.com/dapt4/vim-real-commenter

Top comments (0)