diff --git a/README.md b/README.md index 1fa4562..b8624e8 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really warrant a full blog post. These are mostly things I learn by pairing with smart people at [Hashrocket](http://hashrocket.com/). -_346 TILs and counting..._ +_347 TILs and counting..._ --- @@ -354,6 +354,7 @@ _346 TILs and counting..._ - [Creating Non-Existent Directories](vim/creating-non-existent-directories.md) - [Delete Every Other Line](vim/delete-every-other-line.md) - [Delete Lines That Match A Pattern](vim/delete-lines-that-match-a-pattern.md) +- [Delete To The End Of The Line](vim/delete-to-the-end-of-the-line.md) - [Deleting Buffers In BufExplorer](vim/deleting-buffers-in-bufexplorer.md) - [Deleting Directories Of Files From netrw](vim/deleting-directories-of-files-from-netrw.md) - [Difference Between :wq and :x](vim/difference-between-wq-and-x.md) diff --git a/vim/delete-to-the-end-of-the-line.md b/vim/delete-to-the-end-of-the-line.md new file mode 100644 index 0000000..6b66bbb --- /dev/null +++ b/vim/delete-to-the-end-of-the-line.md @@ -0,0 +1,14 @@ +# Delete To The End Of The Line + +There are a number of ways to delete from the cursor position to the end of +the line. Generally when I am doing this, I want delete to the end of the +line and then start typing something different. Perhaps the best way to do +this is by hitting `C`. It deletes to the end of the line and then leaves +you in insert mode. This also makes for easier repetition with the dot +command. + +This is synonymous with hitting `c$`. + +See `:h C` for more details. + +h/t Dorian Karter