Vim-commentary
From EdWiki
Revision as of 03:49, 22 February 2021 by Jshankar (Talk | contribs) (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...")
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 /