diff --git a/README.md b/README.md index c22059c..bfd704c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_777 TILs and counting..._ +_778 TILs and counting..._ --- @@ -786,6 +786,7 @@ _777 TILs and counting..._ - [Display Word Count Stats](vim/display-word-count-stats.md) - [Edges Of The Selection](vim/edges-of-the-selection.md) - [Edit A File At A Specific Line Number](vim/edit-a-file-at-a-specific-line-number.md) +- [Edit A File Starting On The Last Line](vim/edit-a-file-starting-on-the-last-line.md) - [End Of The Word](vim/end-of-the-word.md) - [Escaping Terminal-Mode In An Nvim Terminal](vim/escaping-terminal-mode-in-an-nvim-terminal.md) - [Filter Lines Through An External Program](vim/filter-lines-through-an-external-program.md) diff --git a/vim/edit-a-file-starting-on-the-last-line.md b/vim/edit-a-file-starting-on-the-last-line.md new file mode 100644 index 0000000..1944c29 --- /dev/null +++ b/vim/edit-a-file-starting-on-the-last-line.md @@ -0,0 +1,24 @@ +# Edit A File Starting On The Last Line + +Generally when you start editing a file whether as a new Vim session (`vim +file.txt`) or in an existing Vim session (`:e file.txt`), your cursor will +be positioned at the beginning of the file. + +You can start editing a file with the cursor positioned at the end of a file +using an _edit command_ -- include `+` with no line number. This may be +useful for a large file or even if you just know that you'll be adding +content directly to the bottom of the file. + +If you are starting a new Vim session: + +```bash +$ vim + file.txt +``` + +or if you are already in a Vim session: + +``` +:e + file.txt +``` + +See `man vim` or `:h +cmd` for more details.