From ea18a6a89bc2ade1a99cf837ab74fe4ba3f457c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikkel=20H=C3=B8gh?= Date: Sat, 14 Sep 2013 14:37:03 +0200 Subject: [PATCH] Don't set global foldlevel Without this change, Fugitive will routinely overwrite the global foldlevel. It shouldn't. --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index e7efc4f..38d5770 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -663,7 +663,7 @@ function! s:Status() abort try Gpedit : wincmd P - set foldmethod=syntax foldlevel=1 + setlocal foldmethod=syntax foldlevel=1 nnoremap q :bdelete catch /^fugitive:/ return 'echoerr v:errmsg'