Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/toc update on write #54

merged 4 commits into from Aug 3, 2018


None yet
1 participant
Copy link

commented Aug 3, 2018

This branch adds the ability to auto-update the TOC before the file is saved.
It is disabled by default and can be enabled by running :let g:mkdx#settings.toc.update_on_write = 1.

Behind the scenes, it uses the BufWritePre event in an autocmd so your vim needs has('autocmd') for this functionality to work.

SidOfc added some commits Aug 3, 2018

@SidOfc SidOfc added the new feature label Aug 3, 2018

@SidOfc SidOfc self-assigned this Aug 3, 2018

@SidOfc SidOfc merged commit 0aa283f into master Aug 3, 2018

@SidOfc SidOfc deleted the feature/toc-update-on-write branch Aug 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.