To comment/uncomment a visual block, just type \x.
and also you can map this key to any other keys
dan123 wrote:
dan123 wrote:
Xi Juanjie wrote:
If you just want to comment/uncomment your source in a easy way, try
this plugin EnhancedCommentify
I am a newbie. How to use it? I installed
:
http://www.nabble.com/-Help-How-can-I-add-some-char-before-a-block--tf3569153.html#a9974258
Sent from the Vim - General mailing list archive at Nabble.com.
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?
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
-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
: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-
If you just want to comment/uncomment your source in a easy way, try
this plugin EnhancedCommentify
陈方荣 wrote:
Hi all,
How can I add some char before a block?
Just like C++ comment.
Before:
Comment line1
Comment line2
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 !, @,
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
陈方荣 [EMAIL PROTECTED] 写于 2007-04-13 09:08:49:
Hi all,
How can I add some char before a block?
Just like C++ comment.
Before:
Comment line1
After:
//Comment line1
Thanks.
Offtopic:
Generally, use comment character to
this message in context:
http://www.nabble.com/-Help-How-can-I-add-some-char-before-a-block--tf3569153.html#a9973027
Sent from the Vim - General mailing list archive at Nabble.com.
Daniel
Is this the way to use it?
:map C-F6 ESC:','call EnhancedCommentify('no', 'Comment')CRj
dan
--
View this message in context:
http://www.nabble.com/-Help-How-can-I-add-some-char-before-a-block--tf3569153.html#a9973243
Sent from the Vim - General mailing list archive at Nabble.com.
12 matches
Mail list logo