Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2096602
  • 博文数量: 229
  • 博客积分: 7217
  • 博客等级: 上校
  • 技术积分: 3224
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-19 17:23
个人简介

个人主页https://xugaoxiang.com,微信公众号: Dev_Club 或者搜索 程序员Club

文章分类

全部博文(229)

文章存档

2017年(1)

2016年(20)

2015年(23)

2013年(1)

2012年(23)

2011年(68)

2010年(62)

2009年(31)

分类: LINUX

2010-07-02 15:56:49

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 1
Highlight the block code by press the key 'v'('' is not included,same as the following)


Step 2
Select the code block by the key 'j'



Step 3
Press ':' and input the strings 's/^/\/\/'(for c/c++,'s/^/#/' for shell script)


Step 4
Press 'Enter'




djstava
阅读(2249) | 评论(0) | 转发(0) |
0

上一篇:VLC mosaic

下一篇:VIM Ctags and Cscope

给主人留下些什么吧!~~