From 9ef63d4fb08d27f04749c10869ee879e5df97f96 Mon Sep 17 00:00:00 2001 From: Julian Wang Date: Thu, 27 Oct 2022 20:37:44 +0800 Subject: [PATCH] do not detect indent in vim help file --- plugin/matchindent.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/matchindent.vim b/plugin/matchindent.vim index ecfe4da..6722312 100644 --- a/plugin/matchindent.vim +++ b/plugin/matchindent.vim @@ -8,6 +8,9 @@ highlight MatchIndentBadIndent ctermbg=red guibg=red autocmd BufNewFile,BufRead * call MatchIndent() function! MatchIndent() + if &filetype == 'help' + return + endif " Zip through the first few lines and look for the three most common " indenting schemes. let n = 1