I normally use a plugin for commenting: http://www.vim.org/scripts/script.php?script_id=23 For inserting chars before a block I use ctrl-v and then I to insert code.
, Dimitar * 陈方荣 <[EMAIL PROTECTED]> [070413 07:10]: > Hi all, > How can I add some char before a block? > Just like C++ comment. > > Before: > Comment line1 > Comment line2 > Comment line3 > Comment line4 > > After: > //Comment line1 > //Comment line2 > //Comment line3 > //Comment line4 > > Thanks. > > --- > Best regards > chenfangrong > >