1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 15:18:01 +00:00
Files
til/vim/almost-the-end-of-the-line.md
jbranchaud b30cdefafb Fix a typo
2016-02-22 20:22:37 -06:00

22 lines
470 B
Markdown

# 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