Ben Schmidt wrote: > >>>> 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>
If you do gH<Del> it deletes the line. It's only on the last line that it makes the line empty. Let's call that a bug. Someone who wants to fix this? -- There is no right or wrong, there is only your personal opinion. (Bram Moolenaar) /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- 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