loading...

re: 3 Ways to Comment Out Blocks of Code in vi VIEW POST

FULL DISCUSSION
 

Quick tips:

  • To go to the beginning/end of your function/block, you can use %
  • Instead of typing the line numbers in your s command, you can highlight the lines and type :. It will prompt :'<,'> and you can continue with your command, i.e. s/^/\/\//, then Enter.

Hope I was clear :)

 
code of conduct - report abuse