Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 470 Bytes

almost-the-end-of-the-line.md

File metadata and controls

21 lines (15 loc) · 470 Bytes

Almost The End Of The Line

If you are visually selecting from the cursor to the end of the line, you will probably hit:

v$

This isn't always ideal though because the visual selection includes the newline character at the end of the line. If instead you'd like to motion to the last non-blank character on the line you can use the g_ motion. This is great for deleting to the end of the line.

dg_

See :h g_ for more details.

h/t Dorian Karter