Add hint for how to get vi to go to end-of-file (#1563)

This commit is contained in:
Paul Jimenez 2022-09-03 15:48:37 -04:00 committed by GitHub
parent 75008dcb1a
commit b2f53d48f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,3 +211,12 @@ display_format: markdown
For more information on how `jrnl` outputs your entries in Markdown, please visit the [Formats](./formats.md) section. For more information on how `jrnl` outputs your entries in Markdown, please visit the [Formats](./formats.md) section.
## Jump to end of buffer (with vi)
To cause vi to jump to the end of the last line of the entry you edit, in your config file set:
```yaml
editor: vi + -c "call cursor('.',strwidth(getline('.')))"
```