Thursday, November 1, 2012

答复: how use surround.vim

I see its help.
If let g:surround_45 = "begin \r End",it can be :

Begin GT_SI <=#`DELAY 0 ; end

Not:
begin
GT_SI <=#`DELAY 0 ;
End
-----邮件原件-----
发件人: Alick Zhao [mailto:alick9188@gmail.com]
发送时间: 2012年11月1日 15:53
收件人: vim_use@googlegroups.com
抄送: wangjun850725@gmail.com
主题: Re: how use surround.vim

On Thu, 1 Nov 2012 11:00:38 +0800, 王军 wrote:
> Hi,everyone
>
> I use surround.vim.
>
> I want it can do like this:
>
>
>
> Old:
>
> GT_SI <=#`DELAY 0 ;
>
>
>
> New:
>
> begin
>
> GT_SI <=#`DELAY 0 ;
>
> End
>
>
>
> How can I do?
>
> Thank you !
>
>

After looking through the doc of surround plugin (surround.txt), I think you might want to add the following line into your .vimrc:

let g:surround_45 = "begin \r End"

Then use ySS- to achive what you want.

See :help surround.txt for more details.

Alick

--
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

No comments: