vimwiki/vimwiki

Feature: Open folds when navigating

Open

#140 opened on May 28, 2015

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Vim Script (9,400 stars) (647 forks)batch import
enhancementgood first issuework-around-exists

Description

I'm an avid user of folds, and I think the vimwiki folding is working well. However, navigating in the wiki by use of <cr> (and similar) with folding enabled often leads to closed folds. I therefore often do something like zv to open the folds after I've navigated with <cr>.

I propose to either add a call to zv in the <cr> mapping, or to add a hook or in some way allow the user to add actions to be performed after a wiki link has been opened. The latter seems the best solution to me, as it gives more control, but the former is also OK. I think it makes sense that navigation in the wiki always opens the folds at the link targets.

Contributor guide