I noticed two behaviors of i" and a" that surprised me.

Consider this text:

  "Here's a patch," Daniel said.

First, set selection=exclusive.

Now place the cursor on the beginning of the line and type va". This selects 
the whole string "Here's a patch," with the quotes and one trailing whitespace, 
as expected. Typing va" again should have no effect, because there are no 
strings to select. Instead Vim beeps and the trailing whitespace is no longer 
selected.

Repeating the same process with vi" instead of va" unselects the comma at the 
end of the string. Repeating further times toggles the comma between selected 
and unselected.

That was issue 1.

Now use text:

  "Thanks," Bram said. "I'll put it on the TODO list!"

Again place the cursor at the beginning of the line. va" selects the first 
string, "Thanks," and trailing whitespace as expected. Type va" again and both 
strings are now selected, which is documented. So far, so good.

Now try again with vi". This is not supposed to do anything, as the :help says:

                        Like a", a' and a`, but exclude the quotes and
                        repeating won't extend the Visual selection.

Instead, the entire first string gets unselected, and the entire second string 
"I'll put it on the TODO list!" gets selected instead (with the quotes this 
time). vi" again unselects the trailing quote but not the leading quote. Once 
the trailing quote is unselected, issue 1 applies again.

That was issue 2.

-- 
-- 
You received this message from the "vim_dev" 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_dev" 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/groups/opt_out.

Raspunde prin e-mail lui