aboutsummaryrefslogtreecommitdiff
path: root/vim
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 /vim
parentd57502b1c94a8c3d8e82d5664a3eb27adbc37301 (diff)
downloaddotfiles-691c81bda11681230ed03a85e97f7f73c896befd.tar.gz
Use case-sensitive operators to appease vim-vint
Diffstat (limited to 'vim')
-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