On 23/09/13 10:42, Dimitar DIMITROV wrote:
Test done with the latest version out of mercurial
Hi,
Here is a bug: if you place your cursor at the end of a line and try dw,
all that happens is the character under cursor is deleted but the line
is not joined with the one below.
hm, dw deletes just the last character on the line but vw highlights
that and also the first character on the next line. w by itself is an
"exclusive" motion, though. You make me wonder if it's a bug or a feature.
Aah, found it (a few paragraphs below ":help word" and ":help WORD"):
Another special case: When using the "w" motion in combination with an
operator and the last word moved over is at the end of a line, the end of
that word becomes the end of the operated text, not the first word in the
next line.
"the end of that word becomes the end of the operated text", so it is
indeed a feature, or at least something documented in the help.
de however is ALMOST working meaning
that it does work in the usual settings but not with :se ve=all. In that
case,
if you go beyond the end of a line the joining of lines happens but your
cursor position changes to the end of line instead of remaining in its
place.
For me, de with ve=all and the cursor beyond the end of the line removes
the end-of-line and the first word of the next line. So, "the place
where the cursor was just before I issued the command" doesn't exist
anymore, and it goes, quite logically IMHO, to the first character after
the deleted EOL and word.
the e motion is described as "forward to end of word, inclusive, doesn't
stop on an empty line".
Regards
Dimitar
What is 'selection' set to on your installation?
:verbose set sel? " with question mark
Mine is set to "inclusive".
Best regards,
Tony.
--
The challenge of space exploration and particularly of landing men on
the moon
represents the greatest challenge which has ever faced the human race. Even
if there were no clear scientific or other arguments for proceeding with
this
task, the whole history of our civilization would still impel men toward the
goal. In fact, the assembly of the scientific and military with these human
arguments creates such an overwhelming case that in can be ignored only by
those who are blind to the teachings of history, or who wish to suspend the
development of civilization at its moment of greatest opportunity and drama.
-- Sir Bernard Lovell, 1962, in "The History of Manned Space
Flight"
--
--
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.