Whereas the main purpose of folds is to hide and expose buffer content, it can also be convenient to navigate between folds in a buffer.
Neovim provides a few simple commands that move the cursor between fold locations, and can be used similarly to how we might navigate through text objects:
Command | Action |
---|---|
]z | move to end of open fold |
[z | move to start of open fold |
zj | move to the start of the next fold |
zk | move to the end of the previous fold |