Skip to content

Commit

Permalink
Add hint for how to get vi to go to end-of-file
Browse files Browse the repository at this point in the history
  • Loading branch information
pjz committed Aug 31, 2022
1 parent 33607ac commit 8955acf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/tips-and-tricks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


## 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('.')))"
```

0 comments on commit 8955acf

Please sign in to comment.