looks I have to live with it. thanks! On Sun, Nov 9, 2014 at 3:12 AM, glts <[email protected]> wrote: > On Sunday, November 9, 2014 9:02:55 AM UTC+1, Eric Christopherson wrote: >> On Sun, Nov 09, 2014, Eric Christopherson wrote: >> > On Sat, Nov 08, 2014, ping song wrote: >> > > I believe this is easy to reproduce: >> > > >> > > test string 1. hi hello world. >> > > test string 2. hi hello world . >> > > >> > > I want to surround hello world (generating -> hi "hello world"). >> > > using surround.vim plugin, if my cursor is within hello, but not on h, >> > > the provided method is as following: >> > > ys2aw" >> > > >> > > if my cursor is on 'h' in hello, then this also works: >> > > ys2w" >> > > >> > > the first method save a move (b key) but does not work for test >> > > string1, but works well for test string 2. I think this might be a >> > > bug... >> > >> > That does seem wrong (specifically, in the first example, the quote goes >> > before the space between `hi` and `hello`). You should notify Tim Pope, >> > the author of the plugin. Do you have a GitHub account? If so, post the >> > bug at https://github.com/tpope/vim-surround/issues . >> >> Actually, it appears the bug you've found is related to these: >> >> https://github.com/tpope/vim-surround/issues/137 >> https://github.com/tpope/vim-surround/issues/138 >> >> Tim Pope admits there might be some edge cases, but "it sounds like the >> core problem is a non-issue". > > Right, I never noticed that the ys operator is not consistent with the > built-in operators. daw includes whitespace, but ysaw doesn't. > > -- > -- > 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 because you are subscribed to the Google Groups > "vim_use" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout.
-- -- 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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
