Loading ...
Sorry, an error occurred while loading the content.

how use surround.vim

Expand Messages
  • 王军
    Hi,everyone I use surround.vim. I want it can do like this: Old: GT_SI
    Message 1 of 3 , Oct 31, 2012
    • 0 Attachment

      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 !

       

      --
      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
    • Alick Zhao
      ... 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 =
      Message 2 of 3 , Nov 1, 2012
      • 0 Attachment
        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
      • 王军
        I see its help. If let g:surround_45 = begin r End ,it can be : Begin GT_SI
        Message 3 of 3 , Nov 1, 2012
        • 0 Attachment
          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@...]
          发送时间: 2012年11月1日 15:53
          收件人: vim_use@...
          抄送: wangjun850725@...
          主题: 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
        Your message has been successfully submitted and would be delivered to recipients shortly.