On 4/13/07, 陈方荣 <[EMAIL PROTECTED]> wrote:

---
Best regards
陈方荣
> -----邮件原件-----
> 发件人: Tim Chase [mailto:[EMAIL PROTECTED]
> 发送时间: 2007年4月13日 :09:44
> 收件人: Ricky Zhou
> 抄送: 陈方荣; Vim
> 主题: Re: [Help]How can I add some char before a block?
>
> >> How can I add some char before a block? Just like C++
> >> comment.
> >
> > Use V to select the block you want, then type :s/^/\/\//
>
> You can make this a little easier/shorter to type by using
>
>       :s!^!//
>
> The alternative delimiters (you can use a variety of characters,
> though I tend to choose "!", "@", or "#") allow you to include
> certain characters without concern for having to escape the
> primary delimiter.
>
> There's also blockwise-visual mode:
>
>       :help v_b_I
>
> which can also be an easy/lazy way to do it, especially if you're
> already in blockwise-visual mode.
>
> -tim
>
>
>

It's work.
Thanks.




comment is not a mechinism designed to erase codes.  using #if 0 ...
#endif to erase a block of code. it's the right way and looks clean.

--
woody

then sun rose thinly from the sea and the old man could see the other
boats, low on the water and well in toward the shore, spread out
across the current.

Reply via email to