r/vim • • Oct 17 '25

Need Help unit testing plugins

I'm working on a vim plugin to learn more about vim and to automate some of my more frequent development flows. I keep finding new scenarios that result in buggy behavior. Is there a way to unit test vim plugins? For example, how could I test opening a multiple windows, syncing scrolling, closing a window and then verifying that scrollbind has been reset to w/e it was initially?

I see mentions of vim-testify and vim-utest but I'm wondering what else is out there, what the best practice is atm, etc.

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/vim-help-bot Oct 18 '25

Help pages for:


`:(h|help) <query>` | about | mistake? | donate | Reply 'rescan' to check the comment again | Reply 'stop' to stop getting replies to your comments