File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really
7
7
warrant a full blog post. These are mostly things I learn by pairing with
8
8
smart people at [ Hashrocket] ( http://hashrocket.com/ ) .
9
9
10
- _ 346 TILs and counting..._
10
+ _ 347 TILs and counting..._
11
11
12
12
---
13
13
@@ -354,6 +354,7 @@ _346 TILs and counting..._
354
354
- [ Creating Non-Existent Directories] ( vim/creating-non-existent-directories.md )
355
355
- [ Delete Every Other Line] ( vim/delete-every-other-line.md )
356
356
- [ 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 )
357
358
- [ Deleting Buffers In BufExplorer] ( vim/deleting-buffers-in-bufexplorer.md )
358
359
- [ Deleting Directories Of Files From netrw] ( vim/deleting-directories-of-files-from-netrw.md )
359
360
- [ Difference Between : wq and : x ] ( vim/difference-between-wq-and-x.md )
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments