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

134128Re: how use surround.vim

Expand Messages
  • Alick Zhao
    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
    • Show all 3 messages in this topic