Thursday, July 5, 2012

Re: Change inside quotes without being inside (bug?)

On 07/05/12 13:02, Tony Mechelynck wrote:
> With i( Vim knows that the ( has to be before the cursor and ) after it.
> With i" there is no such criterion, especially in languages where line
> breaks are legal inside a string. So Vim looks for the nearest (or, with
> a count, nth-nearest) quote on either side of the cursor.

the only problem is that

ci"

doesn't work on multi-line strings, e.g. this Python:

foo = """
my cursor
--> X <--
is here between
the arrows
"""

And I'd consider *that* a bug :-) (or at least an un-feature)

-tim



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