Make a "Select line" selection on a line (triple click in Windows
with default _vimrc). Extend the selection to the end of the file
(Shift click in Windows)

Delete

A blank line is left at the end of the file (Windows or unix).

No such problem with the equivalent "Visual line" selection and
Delete.

Hm, after thinking about it, I wouldn't consider this a bug as this
behaves exactly as it works in other Windows applications.
(e.g. take notepad, open a file and select a line until the end of the
file. If you delete the selection, you are left on a new line)

I think it is a bug. That behaviour in other Windows apps is because
they only have the concept of a characterwise selection. When you are in
SELECT LINE mode rather than just SELECT mode, it should delete all the
lines that are selected. The backspace key does the right thing; the
delete key should, too.

To reproduce this using the keyboard (which I find much easier!) move
somewhere in the middle of a file and press:

gH<C-O>G<Del>

Ben.



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

Raspunde prin e-mail lui