1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00

Add Edit A File Starting On The Last Line as a vim til

This commit is contained in:
jbranchaud
2019-03-10 12:50:23 -05:00
parent 8b616c1acf
commit 2fbf4d4db9
2 changed files with 26 additions and 1 deletions

View File

@@ -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)

View File

@@ -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.