tpope / vim-unimpaired

unimpaired.vim: Pairs of handy bracket mappings
https://www.vim.org/scripts/script.php?script_id=1590
3.31k stars 205 forks source link

`]z` `[z` for jumping between closed folds #188

Closed hupfdule closed 5 years ago

hupfdule commented 5 years ago

I would be nice if vim-unimpaired would support mappings to jump to the next / previous closed fold.

I would image ]z and [z are a good fit, since z is used for fold commands. Maybe an uppercase ]Z / [Z could be used for jumping to the next fold, regardles of it being open or closed, but I am not sure if such a thing is possible in vim.

tpope commented 5 years ago

These are already built-ins for jumping to the start/end of the current fold. And zk/zj jump between folds.