In Vim, how do I insert characters at the beginning of each line in a selection?
For instance, I want to comment out a block of code by prepending //
at the beginning of each line assuming my language's comment system doesn't allow block commenting like /* */
. How would I do this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…