:help CTRL-V
or
:help CTRL-V-alternative
and then :help blockwise-operators, :help v_b_I_example

or you can try The NERD Commenter plugin:
http://www.vim.org/scripts/script.php?script_id=1218

Hope it helps.

Easwy

2007/4/13, Ricky Zhou <[EMAIL PROTECTED]>:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

陈方荣 wrote:
> Hi all,
>             How can I add some char before a block?
>             Just like C++ comment.
Use V to select the block you want, then type :s/^/\/\//

Hope this helps,
Ricky
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFGHtjniXbZ7NjlUcARAobAAJ41JhevS6njMUaTVPSTbsuaOb5LcQCg5Uek
g90dvl8/hixZlSWmhlCWax8=
=r5cj
-----END PGP SIGNATURE-----

Reply via email to