This HOWTO explains how to configure vim to auto-comment.You don't need to comment the source code one by one any more.That is useful for code debugging especially and may improve your efficiency.
Now I want to comment lines from 25 to 29.Follow this guide
Step 1Highlight the block code by press the key 'v'('' is not included,same as the following)
Step 2Select the code block by the key 'j'
Step 3Press ':' and input the strings 's/^/\/\/'(for c/c++,'s/^/#/' for shell script)
Step 4Press 'Enter'
djstava
阅读(2293) | 评论(0) | 转发(0) |