From 1601ffc1e0ac5171e32c2f33e96d3ae88ea2788f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 13 Jan 2013 16:01:17 -0500 Subject: [PATCH] Don't clobber foldmethod in :Gedit : Being a window local option, this can be pretty annoying. --- plugin/fugitive.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 6ac166c..e0bcb50 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -646,6 +646,7 @@ call s:command("-bar Gstatus :execute s:Status()") function! s:Status() abort try Gpedit : + set foldmethod=syntax foldlevel=1 wincmd P nnoremap q :bdelete catch /^fugitive:/ @@ -2027,7 +2028,7 @@ function! s:BufReadIndex() execute cd.'`=dir`' endtry set ft=gitcommit - set foldtext=fugitive#foldtext() foldmethod=syntax foldlevel=1 + set foldtext=fugitive#foldtext() endif setlocal ro noma nomod noswapfile if &bufhidden ==# ''