Accidentally I managed to copy-paste a paragraph in vim a zillion times.
How do I select and then delete the text from my current position to the end of file?
In Windows, this would be Ctrl-Shift-End, followed by Delete.
vim
Accidentally I managed to copy-paste a paragraph in vim a zillion times.
How do I select and then delete the text from my current position to the end of file?
In Windows, this would be Ctrl-Shift-End, followed by Delete.
Best Answer
Enter Visual Mode, go to End of File, delete.
Alternatively, you can do:
To delete from the current position to the beginning of the file.