DEV Community

Discussion on: 3 Ways to Comment Out Blocks of Code in vi

Collapse
 
pianocomposer321 profile image
pianocomposer321

Quote:
What about //? Won't vi get confused since substitution uses / to separate the old value from the new value? This is where we need to use \ (forward slash) to escape the double back slashes that represent commenting.

Acutally, / is forward slash and \ is backslash. :)

Collapse
 
grepliz profile image
Liz Lam

Oh yes, you are right! Correcting now!