I'm new to vim and I found that the steps online didn't work on my vim.
Usually, I do:
1, move to the cursor to the beginning of the first line
2, press shift-V (Ctrl+V will copy thing) to be Visual mode
3, select lines that needed to be commented
4, press shift-i to be insert mode and then type the comment symbols (e.g //)
5, press Esc. The online tutorial said the it will comment on those selected lines automatically, but it doesn't work on my vim.
I use Linux, and I installed commentary.vim plug-in. Not sure if the plug-in is the factor.
Thank you~
0
votes
visual lineorvisual block? I mean the mode in your vim status-line. - Kent