

With super long files (hundreds of thousands, or millions, of lines), that amount of data can be slow to select and then delete. I don’t know if it’s faster to bookmark every line below the current and then delete them, or to select-then-delete as I initially said in How can I delete all rows before or after my current line?: Inspired by Terry’s suggestion of Bookmarks, if you only want to delete the lines after the current cursor (per “my interpretation”), maybe arrow down one line, then Search > Mark, then FIND= ^.*$, Bookmark Line enabled, Wrap Around disabled, Regular Expression mode enabled, then Mark All, and then Search > Bookmark > Remove Bookmarked Lines. But if you want to keep half the document (either keep before or keep after your cursor) then that solution will delete too much. If you really want to keep just the line your cursor is on and delete everything else, then that solution is better than what I explained. Oh, while I was typing, replied with a different interpretation. However, with super long files (hundreds of thousands,or millions, of lines), that amount of data can be slow to select and then delete. With “normal” size files, those work find, followed by DELETE or BACKSPACE to delete them. There’s a way to select from the cursor to the end or beginning of the file, by default with Shift+Ctrl+END or Shift+Ctrl+HOME
