On Vim, when I want to comment multiple lines I always use the following procedure:
1. select the first caracter of your block
2. press Ctrl+V ( this is rectangular visual selection mode)
3. type j for each line more you want to be commented
4. type Shift-i (like I for "insert at start")
5. type // (or # or " or ...)
6. you will see the modification appearing only on the first line
7. IMPORTANT LAST STEP: type Esc key, and there you see the added character appear on all lines
This works fine on Vim. However, on NeoVim it doesn't work at all... Can I comment multiple lines on NeoVim without using any specific plugin for that?
init.vim
file from NeoVim, I found a line withinoremap <Esc> <Nop>
... Taking it out solved the problem. However, the commandnvim -u NONE -U NONE -N file
didn't work for initializing NeoVim without any configuration... I think the syntax is different in this case...--clean
(click that) as noted at the end of the linked answer (that I just added yesterday)? That's basically-u NONE -i NONE
plus additional sterilization. It'll also tell you why you don't have/need Vim's-N
(which essentially does:set nocompatible
).nvim -u NONE -i NONE file
andnvim --clean file
work fine for testing nvim without the configurations.