aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-23 11:23:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-23 11:23:43 +1200
commit691c81bda11681230ed03a85e97f7f73c896befd (patch)
tree82af77b41c869d4a5759039a830bd6ed3392bdba
parentCorrect :return to :break (diff)
downloaddotfiles-691c81bda11681230ed03a85e97f7f73c896befd.tar.gz
dotfiles-691c81bda11681230ed03a85e97f7f73c896befd.zip
Use case-sensitive operators to appease vim-vint
-rw-r--r--vim/ftplugin/markdown.vim6
1 files changed, 3 insertions, 3 deletions
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