[vim/vim] Modelines should not get applied if no autocommand was matched with doautocmd (#854)

18 views
Skip to first unread message

Daniel Hahler

unread,
Jun 9, 2016, 4:10:42 PM6/9/16
to vim/vim

While there is the <nomodeline> option for :doautocmd, Vim could always skip applying the modeline (again) in case no commands were executed.

This can have a severe performance impact (junegunn/vim-oblique#30 (comment)).

This makes especially sense when there are no events defined at all (that's what the fix for the plugin did: junegunn/vim-oblique@32e1c42).

I've initially reported this to the mailing list at https://groups.google.com/d/msg/vim_dev/DidKMDAsppw/vUC9CF9VNFsJ.

Related patch (in the same thread) for a domodelines command: https://groups.google.com/d/msg/vim_dev/DidKMDAsppw/RHedJGM-G6EJ.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Bram Moolenaar

unread,
Jun 9, 2016, 4:53:22 PM6/9/16
to vim/vim

Closed #854 via 1610d05.

Reply all
Reply to author
Forward
0 new messages