Hello Vim developers,
This was first reported on Stack Overflow:
http://stackoverflow.com/questions/16710886/why-does-3dd-not-work-from-the-last-line-in-vim
vim -N -u NONE -c "for i in range(1,3)|call setline(i,i)|endfor"
:normal! 3G3dd
" BUG: This just beeps, nothing gets deleted. Expected: Current last line gets
deleted.
:normal! 2G3dd
" OK: This deletes lines 2 and 3, as expected, even though the count is larger
than the number of lines.
:undo
:3delete 3
" OK: The equivalent Ex command correctly deletes the last line.
Reproducible on Vim 7.4a.24 on Linux/x64, and also on ancient Vim 7.0.000 on
Windows/x86.
-- regards, ingo
--
--
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.