I want to comment on a few lines in my .vimrc, in the usual way I do this :x,ys/^/"/and x denotes the start line number and y denotes the line number of the last line. I read the message that is indicated in visual mode, this task can be performed in the following step:
1 Select your lines with VISUAL BLOCK
2 press I to insert in front of all highlighted lines.
3 enter your comment, in this case should be "
4, then ESC
I ignored the above steps and encountered problems in step 2. The thing is, when I select the lines in visual mode and press I, vim (I use version 7.2), I return to insert mode, and the cursor returns to the beginning of the first line. so if you continue to do steps 3 and 4, you end up just pasting "at the beginning of the first line, away from what I want to achieve.
can you indicate what happened to the recipe? thanks in advance
Damn it, it's my fault. The recipe is absolutely right, if I'm patient enough to enter ESC in step 4, I see that I am. want to see......
source
share