Saturday, November 8, 2014

Re: vim: surround plug bug

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 .

--
Eric Christopherson

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: