💻 Software
How do I delete the next line in vim?
Fresh7 days ago
Mar 15, 20267601 viewsConfidence Score0%
0%
Problem
In emacs, whenever I want to delete a few lines of text, I just use C-k until all the text is gone. However, in vim it seems a bit more complex. I know I can do to delete until the end of the line and to delete the entire line I'm on, but how do I delete all of the next line?
Error Output
d$
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I delete the next line in vim?
Low Risk
Assumption: You want to end up at the line you started on. My answer: j (moves down) dd (deletes current line) k (moves up) Try it – it's quick! In fact, it's two keystrokes less than the currently accepted answer because: you don't need to hold to …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix