From d3bb177f1e1dcbc4104d7bba6f2ac4ebe3ffc9c9 Mon Sep 17 00:00:00 2001 From: David Bürgin <676c7473@gmail.com> Date: Sat, 28 Mar 2015 22:28:37 +0100 Subject: vim-patch:7.4.497 #2295 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: With some regexp patterns the NFA engine uses many states and becomes very slow. To the user it looks like Vim freezes. Solution: When the number of states reaches a limit fall back to the old engine. (Christian Brabandt) https://github.com/vim/vim/releases/tag/v7-4-497 Helped-by: David Bürgin <676c7473@gmail.com> Helped-by: Justin M. Keyes Helped-by: Scott Prager --- runtime/doc/options.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 0c964ae519..c0f1888d84 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -5383,6 +5383,10 @@ A jump table for the options with a short description can be found at |Q_op|. Note that when using the NFA engine and the pattern contains something that is not supported the pattern will not match. This is only useful for debugging the regexp engine. + Using automatic selection enables Vim to switch the engine, if the + default engine becomes too costly. E.g., when the NFA engine uses too + many states. This should prevent Vim from hanging on a combination of + a complex pattern with long text. *'relativenumber'* *'rnu'* *'norelativenumber'* *'nornu'* 'relativenumber' 'rnu' boolean (default off) -- cgit