Actions

EmSys

Difference between revisions of "Vim-commentary"

From EdWiki

(Created page with "__NOTOC__ === Install commentary === Plug 'tpope/vim-commentary' === Configuration === This is my preferred way to use this tool <pre> nnoremap <space>/ :Commentary<CR> vnor...")
 
(No difference)

Latest revision as of 03:49, 22 February 2021


Install commentary

Plug 'tpope/vim-commentary'

Configuration

This is my preferred way to use this tool

nnoremap <space>/ :Commentary<CR>
vnoremap <space>/ :Commentary<CR>

Just press / and it will comment out the line

In visual mode select the text you want to comment out and press /

Link to repo

commentary