Hi
If do you said, only fold "//" which are at the front of line
So I modify ,and like " set fde=getline(v:lnum)=~'\s*\/\/\\\|^\s*$'?1:0"
Now it will fold "//" which at back of line.
Like this " a = b; //comment
-----邮件原件-----
发件人: [email protected] [mailto:[email protected]] 代表 Chris Lott
发送时间: 2012年11月15日 15:20
收件人: [email protected]
主题: Re: how fold all comment line?
On Wed, Nov 14, 2012 at 10:05 PM, 王军 <[email protected]> wrote:
> Hi everyone:
>
> I want to fold all line which are comment.
>
> eg.
>
> //aaaaaaaaaaaaaaaaaa
Something like this?
set fdm=expr
set fde=getline(v:lnum)=~'^\s*\/\/\\\|^\s*$'?1:0
c
--
Chris Lott <[email protected]>
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php