From 5eba0f19c87402643eb8a7e7d20d9d5338fd6d71 Mon Sep 17 00:00:00 2001 From: d125q Date: Tue, 9 Dec 2014 00:06:40 +0100 Subject: [PATCH] Make repeat#wrap open a fold if &foldopen contains 'all' Closes #31. --- autoload/repeat.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/repeat.vim b/autoload/repeat.vim index 18b1280..ef72247 100644 --- a/autoload/repeat.vim +++ b/autoload/repeat.vim @@ -97,7 +97,7 @@ endfunction function! repeat#wrap(command,count) let preserve = (g:repeat_tick == b:changedtick) - exe 'norm! '.(a:count ? a:count : '').a:command . (&foldopen =~# 'undo' ? 'zv' : '') + exe 'norm! '.(a:count ? a:count : '').a:command . (&foldopen =~# 'undo\|all' ? 'zv' : '') if preserve let g:repeat_tick = b:changedtick endif