From 691c81bda11681230ed03a85e97f7f73c896befd Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 23 May 2019 11:23:43 +1200 Subject: Use case-sensitive operators to appease vim-vint --- vim/ftplugin/markdown.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vim') diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim index 9b2a0c12..d119e599 100644 --- a/vim/ftplugin/markdown.vim +++ b/vim/ftplugin/markdown.vim @@ -28,11 +28,11 @@ function! MarkdownFold() endif " Setext style headings - if line =~ '^.\+$' + if line =~# '^.\+$' let nextline = getline(v:lnum + 1) - if nextline =~ '^=\+$' + if nextline =~# '^=\+$' return '>1' - elseif nextline =~ '^-\+$' + elseif nextline =~# '^-\+$' return '>2' endif endif -- cgit v1.2.3