Skip to content

Commit edb59ab

Browse files
committed
Add Delete To The End Of The Line as a vim til
1 parent 4b2272f commit edb59ab

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really
77
warrant a full blog post. These are mostly things I learn by pairing with
88
smart people at [Hashrocket](http://hashrocket.com/).
99

10-
_346 TILs and counting..._
10+
_347 TILs and counting..._
1111

1212
---
1313

@@ -354,6 +354,7 @@ _346 TILs and counting..._
354354
- [Creating Non-Existent Directories](vim/creating-non-existent-directories.md)
355355
- [Delete Every Other Line](vim/delete-every-other-line.md)
356356
- [Delete Lines That Match A Pattern](vim/delete-lines-that-match-a-pattern.md)
357+
- [Delete To The End Of The Line](vim/delete-to-the-end-of-the-line.md)
357358
- [Deleting Buffers In BufExplorer](vim/deleting-buffers-in-bufexplorer.md)
358359
- [Deleting Directories Of Files From netrw](vim/deleting-directories-of-files-from-netrw.md)
359360
- [Difference Between :wq and :x](vim/difference-between-wq-and-x.md)

vim/delete-to-the-end-of-the-line.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Delete To The End Of The Line
2+
3+
There are a number of ways to delete from the cursor position to the end of
4+
the line. Generally when I am doing this, I want delete to the end of the
5+
line and then start typing something different. Perhaps the best way to do
6+
this is by hitting `C`. It deletes to the end of the line and then leaves
7+
you in insert mode. This also makes for easier repetition with the dot
8+
command.
9+
10+
This is synonymous with hitting `c$`.
11+
12+
See `:h C` for more details.
13+
14+
h/t Dorian Karter

0 commit comments

Comments
 (0)